]> granicus.if.org Git - clang/commitdiff
Like for LLVM / shlib, we also provide a SONAME to libclang.so
authorSylvestre Ledru <sylvestre@debian.org>
Sun, 15 Apr 2012 23:17:25 +0000 (23:17 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 15 Apr 2012 23:17:25 +0000 (23:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154779 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/Makefile

index 1fff166bbf8ff7c3b0701361b3e506ae69e0a830..f2d29ee6ecf16ff5ad751f9b7d6424d92ad8e902 100644 (file)
@@ -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?
 ##===----------------------------------------------------------------------===##