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

Anton Korobeynikov asl at math.spbu.ru
Fri Mar 23 03:00:43 PDT 2012


Author: asl
Date: Fri Mar 23 05:00:42 2012
New Revision: 153324

URL: http://llvm.org/viewvc/llvm-project?rev=153324&view=rev
Log:
Add soname to LLVM shared library on Linux. Probably the same stuff is necessary for *BSD.
Patch from Mageia!

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=153324&r1=153323&r2=153324&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-shlib/Makefile (original)
+++ llvm/trunk/tools/llvm-shlib/Makefile Fri Mar 23 05:00:42 2012
@@ -72,6 +72,8 @@
 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