Export symbols for linux
authorChris Lattner <sabre@nondot.org>
Fri, 13 Sep 2002 22:20:19 +0000 (22:20 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Sep 2002 22:20:19 +0000 (22:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3707 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Makefile
tools/lli/Makefile

index 4e47ee6a71835ec11e4b566c7bf887acc3f8592f..b5b7c3d26b964103e70ff927b7809d2f714d9862 100644 (file)
@@ -1,6 +1,10 @@
 LEVEL = ../..
 TOOLNAME = lli
 USEDLIBS = bcreader vmcore analysis.a support.a target.a transforms.a
-TOOLLINKOPTS = -ldl
+
+# Have gcc tell the linker to export symbols from the program so that
+# dynamically loaded modules can be linked against them.
+#
+TOOLLINKOPTS = -ldl $(ExportSymbols)
 
 include $(LEVEL)/Makefile.common
index 4e47ee6a71835ec11e4b566c7bf887acc3f8592f..b5b7c3d26b964103e70ff927b7809d2f714d9862 100644 (file)
@@ -1,6 +1,10 @@
 LEVEL = ../..
 TOOLNAME = lli
 USEDLIBS = bcreader vmcore analysis.a support.a target.a transforms.a
-TOOLLINKOPTS = -ldl
+
+# Have gcc tell the linker to export symbols from the program so that
+# dynamically loaded modules can be linked against them.
+#
+TOOLLINKOPTS = -ldl $(ExportSymbols)
 
 include $(LEVEL)/Makefile.common