[cfe-commits] r154779 - /cfe/trunk/tools/libclang/Makefile

Sylvestre Ledru sylvestre at debian.org
Sun Apr 15 16:17:25 PDT 2012


Author: sylvestre
Date: Sun Apr 15 18:17:25 2012
New Revision: 154779

URL: http://llvm.org/viewvc/llvm-project?rev=154779&view=rev
Log:
Like for LLVM / shlib, we also provide a SONAME to libclang.so


Modified:
    cfe/trunk/tools/libclang/Makefile

Modified: cfe/trunk/tools/libclang/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/Makefile?rev=154779&r1=154778&r2=154779&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/Makefile (original)
+++ cfe/trunk/tools/libclang/Makefile Sun Apr 15 18:17:25 2012
@@ -23,6 +23,11 @@
 
 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?
 ##===----------------------------------------------------------------------===##





More information about the cfe-commits mailing list