]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commitdiff
Create a default symver on Linux like ELF OSes.
authorEric Christopher <echristo@gmail.com>
Thu, 31 Jul 2014 18:43:43 +0000 (18:43 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 31 Jul 2014 18:43:43 +0000 (18:43 +0000)
Patch by Adam Jackson.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214418 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-shlib/Makefile

index 19077a3858a6a5cb7aa0342faaa392c118f219f2..4e656b438c3d6eacf30cac506bd4ca491f126c06 100644 (file)
@@ -69,6 +69,11 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD))
     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)