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 | 9f453d27bfefbd7b3f2191e782949e630ec010b3 (patch) | |
tree | cc37aae90500e9ea3f84fceb1f978b795f15d2c4 /clang/tools | |
parent | 58d2bb12ff546c6e5845fc87b554fcc276052a84 (diff) | |
download | llvm-9f453d27bfefbd7b3f2191e782949e630ec010b3.zip llvm-9f453d27bfefbd7b3f2191e782949e630ec010b3.tar.gz llvm-9f453d27bfefbd7b3f2191e782949e630ec010b3.tar.bz2 |
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)
llvm-svn: 193607
Diffstat (limited to 'clang/tools')
-rw-r--r-- | clang/tools/libclang/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/libclang/Makefile b/clang/tools/libclang/Makefile index 90abe85..43ecbd1 100644 --- a/clang/tools/libclang/Makefile +++ b/clang/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 ##===----------------------------------------------------------------------===## |