mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 21:34:23 +00:00
fix ld error with -no-undefined switch, which is undefined on darwin8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74674 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
07b0ec0927
commit
1bc1e6407f
@ -31,7 +31,7 @@ ifeq ($(OS),Darwin)
|
|||||||
endif
|
endif
|
||||||
# extra options to override libtool defaults
|
# extra options to override libtool defaults
|
||||||
LLVMLibsOptions := $(LLVMLibsOptions) \
|
LLVMLibsOptions := $(LLVMLibsOptions) \
|
||||||
-no-undefined -avoid-version \
|
-avoid-version \
|
||||||
-Wl,-exported_symbols_list -Wl,$(PROJ_SRC_DIR)/lto.exports \
|
-Wl,-exported_symbols_list -Wl,$(PROJ_SRC_DIR)/lto.exports \
|
||||||
-Wl,-dead_strip \
|
-Wl,-dead_strip \
|
||||||
-Wl,-seg1addr -Wl,0xE0000000
|
-Wl,-seg1addr -Wl,0xE0000000
|
||||||
@ -40,7 +40,7 @@ ifeq ($(OS),Darwin)
|
|||||||
DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')
|
DARWIN_VERS := $(shell echo $(TARGET_TRIPLE) | sed 's/.*darwin\([0-9]*\).*/\1/')
|
||||||
ifneq ($(DARWIN_VERS),8)
|
ifneq ($(DARWIN_VERS),8)
|
||||||
LLVMLibsOptions := $(LLVMLibsOptions) \
|
LLVMLibsOptions := $(LLVMLibsOptions) \
|
||||||
-Wl,-install_name \
|
-no-undefined -Wl,-install_name \
|
||||||
-Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
|
-Wl,"@executable_path/../lib/lib$(LIBRARYNAME)$(SHLIBEXT)"
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user