[llvm] r214418 - Create a default symver on Linux like ELF OSes.

Eric Christopher echristo at gmail.com
Thu Jul 31 11:43:44 PDT 2014


Author: echristo
Date: Thu Jul 31 13:43:43 2014
New Revision: 214418

URL: http://llvm.org/viewvc/llvm-project?rev=214418&view=rev
Log:
Create a default symver on Linux like ELF OSes.

Patch by Adam Jackson.

Modified:
    llvm/trunk/tools/llvm-shlib/Makefile

Modified: llvm/trunk/tools/llvm-shlib/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-shlib/Makefile?rev=214418&r1=214417&r2=214418&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-shlib/Makefile (original)
+++ llvm/trunk/tools/llvm-shlib/Makefile Thu Jul 31 13:43:43 2014
@@ -69,6 +69,11 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), L
     LLVMLibsOptions += -Wl,--no-undefined
 endif
 
+ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD))
+    # Define a default symbol version
+    LLVMLibsOptions += -Wl,--default-symver
+endif
+
 ifeq ($(HOST_OS),SunOS)
     # add -z allextract ahead of other libraries on Solaris
     LLVMLibsOptions := -Wl,-z -Wl,allextract $(LLVMLibsOptions)





More information about the llvm-commits mailing list