diff options
-rw-r--r-- | lib/ExecutionEngine/Makefile | 6 | ||||
-rw-r--r-- | tools/lli/Makefile | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/Makefile b/lib/ExecutionEngine/Makefile index 4e47ee6a71..b5b7c3d26b 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 4e47ee6a71..b5b7c3d26b 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 |