summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-26 18:37:59 +0000
committerChris Lattner <sabre@nondot.org>2009-02-26 18:37:59 +0000
commit065d7a61e2a10c5e729bc0f1b50b68ed85827c48 (patch)
treef50a3b63b41df41ee24b9ed1229a5bc3c7ec8b7e
parent6b37dcdedffe4c91601da8cfaf793053a2ce4b0f (diff)
downloadllvm-065d7a61e2a10c5e729bc0f1b50b68ed85827c48.tar.gz
llvm-065d7a61e2a10c5e729bc0f1b50b68ed85827c48.tar.bz2
llvm-065d7a61e2a10c5e729bc0f1b50b68ed85827c48.tar.xz
Search for the export map in a place that it can be found.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65552 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Makefile.rules2
-rw-r--r--autoconf/ExportMap.map4
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 388372e0a9..11d295ceb6 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -1079,7 +1079,7 @@ LD.Flags += -Wl,-exported_symbol -Wl,_main
endif
ifeq ($(OS), $(filter $(OS), Linux NetBSD FreeBSD))
-LD.Flags += -Wl,--version-script=Driver.map
+LD.Flags += -Wl,--version-script=$(LLVM_SRC_ROOT)/ExportMap.map
endif
endif
diff --git a/autoconf/ExportMap.map b/autoconf/ExportMap.map
new file mode 100644
index 0000000000..43e310e053
--- /dev/null
+++ b/autoconf/ExportMap.map
@@ -0,0 +1,4 @@
+{
+ global: main;
+ local: *;
+};