diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2012-04-15 23:17:25 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2012-04-15 23:17:25 +0000 |
commit | 0740a25e9be2dd98f44a73f58cade13b1f068c6e (patch) | |
tree | 9d3ad3fadab81d97ddcab624e3e35624ab2d3cc0 /tools | |
parent | b5491f3d7b688b37745397fafd6c1f10548fd5c2 (diff) |
Like for LLVM / shlib, we also provide a SONAME to libclang.so
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libclang/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/libclang/Makefile b/tools/libclang/Makefile index 1fff166bbf..f2d29ee6ec 100644 --- a/tools/libclang/Makefile +++ b/tools/libclang/Makefile @@ -23,6 +23,11 @@ USEDLIBS = clangARCMigrate.a clangRewrite.a clangFrontend.a clangDriver.a \ include $(CLANG_LEVEL)/Makefile +# Add soname to the library. +ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux FreeBSD OpenBSD GNU)) + LDFLAGS += -Wl,-soname,lib$(LIBRARYNAME)$(SHLIBEXT) +endif + ##===----------------------------------------------------------------------===## # FIXME: This is copied from the 'lto' makefile. Should we share this? ##===----------------------------------------------------------------------===## |