summaryrefslogtreecommitdiff
path: root/tools/llvm-shlib
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-07-31 18:43:43 +0000
committerEric Christopher <echristo@gmail.com>2014-07-31 18:43:43 +0000
commit26d83150b4df866cdd456564df53362f8549bb57 (patch)
treee975d65a833f057820c996aa41367adc7e867022 /tools/llvm-shlib
parent9d65d3717c184449f4417bc5639e5f7513017c0e (diff)
Create a default symver on Linux like ELF OSes.
Patch by Adam Jackson. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214418 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-shlib')
-rw-r--r--tools/llvm-shlib/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/llvm-shlib/Makefile b/tools/llvm-shlib/Makefile
index 19077a3858a..4e656b438c3 100644
--- a/tools/llvm-shlib/Makefile
+++ b/tools/llvm-shlib/Makefile
@@ -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)