Search for the export map in a place that it can be found.
authorChris Lattner <sabre@nondot.org>
Thu, 26 Feb 2009 18:37:59 +0000 (18:37 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 26 Feb 2009 18:37:59 +0000 (18:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65552 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules
autoconf/ExportMap.map [new file with mode: 0644]

index 388372e0a9ae76ca094f4920681f0c192eaf4a9f..11d295ceb673775967a46d291f59827c311f25c1 100644 (file)
@@ -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 (file)
index 0000000..43e310e
--- /dev/null
@@ -0,0 +1,4 @@
+{
+       global: main;
+       local: *;
+};