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
diff --git a/Makefile.rules b/Makefile.rules
index 388372e..11d295c 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -1079,7 +1079,7 @@
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 0000000..43e310e
--- /dev/null
+++ b/autoconf/ExportMap.map
@@ -0,0 +1,4 @@
+{
+ global: main;
+ local: *;
+};