From: Chris Lattner Date: Fri, 13 Sep 2002 22:20:19 +0000 (+0000) Subject: Export symbols for linux X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b77640134e64da9776b7d25bd3c2b7085385d4e1;p=oota-llvm.git Export symbols for linux git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3707 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/Makefile b/lib/ExecutionEngine/Makefile index 4e47ee6a718..b5b7c3d26b9 100644 --- a/lib/ExecutionEngine/Makefile +++ b/lib/ExecutionEngine/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 diff --git a/tools/lli/Makefile b/tools/lli/Makefile index 4e47ee6a718..b5b7c3d26b9 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