Under GNU/Linux & HURD, add a soname to the liblldb shared library.

llvm-svn: 172728
This commit is contained in:
Sylvestre Ledru 2013-01-17 16:59:32 +00:00
parent 4f1885a109
commit 7f6a520b2c
1 changed files with 2 additions and 1 deletions

View File

@ -135,7 +135,7 @@ ifeq ($(HOST_OS),Darwin)
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 @@ ifeq ($(HOST_OS),Linux)
LLVMLibsOptions += -Wl,--no-undefined
# Link in python
LLVMLibsOptions += $(PYTHON_BUILD_FLAGS) -lrt
LLVMLibsOptions += -Wl,--soname,lib$(LIBRARYNAME)$(SHLIBEXT)
endif
ifeq ($(HOST_OS),FreeBSD)