aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-13 22:20:19 +0000
committerChris Lattner <sabre@nondot.org>2002-09-13 22:20:19 +0000
commitb77640134e64da9776b7d25bd3c2b7085385d4e1 (patch)
tree4e7b62f9ff5aa0d4da1fbfe1832266484ea96df3 /tools
parentdbc436cb07c4b1f353331f350dfe6ca58604b51c (diff)
downloadexternal_llvm-b77640134e64da9776b7d25bd3c2b7085385d4e1.zip
external_llvm-b77640134e64da9776b7d25bd3c2b7085385d4e1.tar.gz
external_llvm-b77640134e64da9776b7d25bd3c2b7085385d4e1.tar.bz2
Export symbols for linux
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/lli/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/lli/Makefile b/tools/lli/Makefile
index 4e47ee6..b5b7c3d 100644
--- a/tools/lli/Makefile
+++ b/tools/lli/Makefile
@@ -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