forked from OSchip/llvm-project
Create a default symver on Linux like ELF OSes.
Patch by Adam Jackson. llvm-svn: 214418
This commit is contained in:
parent
ab6adeb8a1
commit
42040ed753
|
@ -69,6 +69,11 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD))
|
||||||
LLVMLibsOptions += -Wl,--no-undefined
|
LLVMLibsOptions += -Wl,--no-undefined
|
||||||
endif
|
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)
|
ifeq ($(HOST_OS),SunOS)
|
||||||
# add -z allextract ahead of other libraries on Solaris
|
# add -z allextract ahead of other libraries on Solaris
|
||||||
LLVMLibsOptions := -Wl,-z -Wl,allextract $(LLVMLibsOptions)
|
LLVMLibsOptions := -Wl,-z -Wl,allextract $(LLVMLibsOptions)
|
||||||
|
|
Loading…
Reference in New Issue