summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-15 23:08:00 +0000
committerDan Gohman <gohman@apple.com>2010-04-15 23:08:00 +0000
commit7c52f2ee06c8b22287d658fc30d00525f8d4db42 (patch)
tree191a0614a61923244f2833e5f4885209f222baa6 /Makefile.rules
parent2d675f130804cdc92137101c0f88d4c91bfa0950 (diff)
downloadllvm-7c52f2ee06c8b22287d658fc30d00525f8d4db42.tar.gz
llvm-7c52f2ee06c8b22287d658fc30d00525f8d4db42.tar.bz2
llvm-7c52f2ee06c8b22287d658fc30d00525f8d4db42.tar.xz
Make the export files absolute paths, and change Makefile.rules
to expect them this way, to fix srcdir!=objdir builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 0c5d9066a3..9ff6c79b6e 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -978,7 +978,7 @@ ifdef EXPORTED_SYMBOL_FILE
ifeq ($(HOST_OS),Darwin)
# Darwin convention prefixes symbols with underscores.
-NativeExportsFile := $(ObjDir)/$(EXPORTED_SYMBOL_FILE).sed
+NativeExportsFile := $(ObjDir)/$(notdir $(EXPORTED_SYMBOL_FILE)).sed
$(NativeExportsFile): $(EXPORTED_SYMBOL_FILE) $(ObjDir)/.dir
$(Verb) sed -e 's/[[:<:]]/_/' < $< > $@
clean-local::