summaryrefslogtreecommitdiffstats
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
commit42040ed753b7dc346737a580eb03da4b5e1e860d (patch)
treed8812c82c304f2663b244059073bfa1b53d0915c
parentab6adeb8a148ddd313e1220939bd2eb3bc63a328 (diff)
downloadbcm5719-llvm-42040ed753b7dc346737a580eb03da4b5e1e860d.tar.gz
bcm5719-llvm-42040ed753b7dc346737a580eb03da4b5e1e860d.zip
Create a default symver on Linux like ELF OSes.
Patch by Adam Jackson. llvm-svn: 214418
-rw-r--r--llvm/tools/llvm-shlib/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/tools/llvm-shlib/Makefile b/llvm/tools/llvm-shlib/Makefile
index 19077a3858a..4e656b438c3 100644
--- a/llvm/tools/llvm-shlib/Makefile
+++ b/llvm/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)
OpenPOWER on IntegriCloud