diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2013-10-29 13:01:41 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2013-10-29 13:01:41 +0000 |
commit | fa3d81ca3cfe064bbbcae9be93a215bc8f5ba906 (patch) | |
tree | f5d6d509af75764fa5ae9a92ada475d35704ca65 /tools | |
parent | a6306fc4b03672f7ecc0ae43d2620a0fc36764e9 (diff) | |
download | clang-fa3d81ca3cfe064bbbcae9be93a215bc8f5ba906.tar.gz clang-fa3d81ca3cfe064bbbcae9be93a215bc8f5ba906.tar.bz2 clang-fa3d81ca3cfe064bbbcae9be93a215bc8f5ba906.tar.xz |
Use LLVMLibsOptions intead of LDFLAGS when setting the libclang soname. This allows 'make LDFLAGS=foo' to be set correctly (and matches the way it is done with libllvm and liblldb)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193607 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libclang/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libclang/Makefile b/tools/libclang/Makefile index 90abe859bb..43ecbd1403 100644 --- a/tools/libclang/Makefile +++ b/tools/libclang/Makefile @@ -30,7 +30,7 @@ include $(CLANG_LEVEL)/Makefile # Add soname to the library. ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD GNU GNU/kFreeBSD)) - LDFLAGS += -Wl,-soname,lib$(LIBRARYNAME)$(SHLIBEXT) + LLVMLibsOptions += -Wl,-soname,lib$(LIBRARYNAME)$(SHLIBEXT) endif ##===----------------------------------------------------------------------===## |