Fix for builds with separate source and build

directories (like, oh, say, any multistage build)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sean Callanan 2010-02-01 23:27:57 +00:00
parent 6ddf0430e1
commit 54c7788e99

View File

@ -34,7 +34,7 @@ ifeq ($(HOST_OS),Darwin)
# extra options to override libtool defaults
LLVMLibsOptions := $(LLVMLibsOptions) \
-avoid-version \
-Wl,-exported_symbols_list -Wl,$(PROJ_SRC_DIR)/EnhancedDisassembly.exports \
-Wl,-exported_symbols_list -Wl,EnhancedDisassembly.exports \
-Wl,-dead_strip \
-Wl,-seg1addr -Wl,0xE0000000
@ -55,11 +55,11 @@ EnhancedDisassembly.exports: EnhancedDisassembly.exports.noblocks EnhancedDisass
$(Echo) "Copying exports file"
ifeq ($(HOST_OS),Darwin)
$(Verb) if [ $(DARWIN_VERS) -ge 10 ] ; \
then $(CP) -f EnhancedDisassembly.exports.blocks EnhancedDisassembly.exports ; \
else $(CP) -f EnhancedDisassembly.exports.noblocks EnhancedDisassembly.exports ; \
then $(CP) -f $(PROJ_SRC_DIR)/EnhancedDisassembly.exports.blocks EnhancedDisassembly.exports ; \
else $(CP) -f $(PROJ_SRC_DIR)/EnhancedDisassembly.exports.noblocks EnhancedDisassembly.exports ; \
fi
else
$(Verb) $(CP) -f EnhancedDisassembly.exports.noblocks EnhancedDisassembly.exports
$(Verb) $(CP) -f $(PROJ_SRC_DIR)/EnhancedDisassembly.exports.noblocks EnhancedDisassembly.exports
endif
clean::