aboutsummaryrefslogtreecommitdiff
path: root/clang/tools
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2013-10-29 13:01:41 +0000
committerSylvestre Ledru <sylvestre@debian.org>2013-10-29 13:01:41 +0000
commit9f453d27bfefbd7b3f2191e782949e630ec010b3 (patch)
treecc37aae90500e9ea3f84fceb1f978b795f15d2c4 /clang/tools
parent58d2bb12ff546c6e5845fc87b554fcc276052a84 (diff)
downloadllvm-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/Makefile2
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
##===----------------------------------------------------------------------===##