[llvm-commits] [llvm] r153965 - /llvm/trunk/tools/llvm-shlib/Makefile

Anton Korobeynikov asl at math.spbu.ru
Tue Apr 3 12:48:31 PDT 2012


Author: asl
Date: Tue Apr  3 14:48:31 2012
New Revision: 153965

URL: http://llvm.org/viewvc/llvm-project?rev=153965&view=rev
Log:
Set soname for FreeBSD as well.
Patch by Bernard Cafarelli!

Modified:
    llvm/trunk/tools/llvm-shlib/Makefile

Modified: llvm/trunk/tools/llvm-shlib/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-shlib/Makefile?rev=153965&r1=153964&r2=153965&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-shlib/Makefile (original)
+++ llvm/trunk/tools/llvm-shlib/Makefile Tue Apr  3 14:48:31 2012
@@ -67,13 +67,13 @@
     # Include everything from the .a's into the shared library.
     LLVMLibsOptions := -Wl,--whole-archive $(LLVMLibsOptions) \
                        -Wl,--no-whole-archive
+    # Add soname to the library.
+    LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
 endif
 
 ifeq ($(HOST_OS),Linux)
     # Don't allow unresolved symbols.
     LLVMLibsOptions += -Wl,--no-undefined
-    # Add soname to the library.
-    LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
 endif
 
 ifeq ($(HOST_OS),SunOS)





More information about the llvm-commits mailing list