summaryrefslogtreecommitdiff
path: root/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
commitfa3d81ca3cfe064bbbcae9be93a215bc8f5ba906 (patch)
treef5d6d509af75764fa5ae9a92ada475d35704ca65 /tools
parenta6306fc4b03672f7ecc0ae43d2620a0fc36764e9 (diff)
downloadclang-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/Makefile2
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
##===----------------------------------------------------------------------===##