[Lldb-commits] [lldb] r172728 - /lldb/trunk/lib/Makefile

Sylvestre Ledru sylvestre at debian.org
Thu Jan 17 08:59:32 PST 2013


Author: sylvestre
Date: Thu Jan 17 10:59:32 2013
New Revision: 172728

URL: http://llvm.org/viewvc/llvm-project?rev=172728&view=rev
Log:
Under GNU/Linux & HURD, add a soname to the liblldb shared library. 

Modified:
    lldb/trunk/lib/Makefile

Modified: lldb/trunk/lib/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lib/Makefile?rev=172728&r1=172727&r2=172728&view=diff
==============================================================================
--- lldb/trunk/lib/Makefile (original)
+++ lldb/trunk/lib/Makefile Thu Jan 17 10:59:32 2013
@@ -135,7 +135,7 @@
     endif
 endif
 
-ifeq ($(HOST_OS),Linux)
+ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU))
     # Include everything from the .a's into the shared library.
     ProjLibsOptions := -Wl,--whole-archive $(ProjLibsOptions) \
                        -Wl,--no-whole-archive
@@ -143,6 +143,7 @@
     LLVMLibsOptions += -Wl,--no-undefined
     # Link in python
     LLVMLibsOptions += $(PYTHON_BUILD_FLAGS) -lrt
+    LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
 endif
 
 ifeq ($(HOST_OS),FreeBSD)





More information about the lldb-commits mailing list