Create a default symver on Linux like ELF OSes.

Patch by Adam Jackson.

llvm-svn: 214418
This commit is contained in:
Eric Christopher 2014-07-31 18:43:43 +00:00
parent ab6adeb8a1
commit 42040ed753
1 changed files with 5 additions and 0 deletions

View 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)