diff --git a/lib/ExecutionEngine/Makefile b/lib/ExecutionEngine/Makefile index b5b7c3d26b9..a0e73d71500 100644 --- a/lib/ExecutionEngine/Makefile +++ b/lib/ExecutionEngine/Makefile @@ -5,6 +5,6 @@ USEDLIBS = bcreader vmcore analysis.a support.a target.a transforms.a # Have gcc tell the linker to export symbols from the program so that # dynamically loaded modules can be linked against them. # -TOOLLINKOPTS = -ldl $(ExportSymbols) +TOOLLINKOPTS = -ldl include $(LEVEL)/Makefile.common diff --git a/tools/analyze/Makefile b/tools/analyze/Makefile index 9add20b9a0d..57152ac5cdb 100644 --- a/tools/analyze/Makefile +++ b/tools/analyze/Makefile @@ -2,7 +2,7 @@ LEVEL = ../.. TOOLNAME = analyze USEDLIBS = asmparser bcreader scalaropts.a transforms.a analysis ipa \ datastructure target.a transformutils.a vmcore support -TOOLLINKOPTS = -ldl $(ExportSymbols) +TOOLLINKOPTS = -ldl include $(LEVEL)/Makefile.common diff --git a/tools/jello/Makefile b/tools/jello/Makefile index 3543c82b79e..4653e1ad7b9 100644 --- a/tools/jello/Makefile +++ b/tools/jello/Makefile @@ -5,6 +5,6 @@ USEDLIBS = bcreader vmcore codegen x86 support.a target.a # Have gcc tell the linker to export symbols from the program so that # dynamically loaded modules can be linked against them. # -TOOLLINKOPTS = -ldl $(ExportSymbols) +TOOLLINKOPTS = -ldl include $(LEVEL)/Makefile.common diff --git a/tools/llc/Makefile b/tools/llc/Makefile index 186d5abbf17..503dfa09434 100644 --- a/tools/llc/Makefile +++ b/tools/llc/Makefile @@ -22,8 +22,7 @@ USEDLIBS = mapping \ transformutils \ vmcore \ support -TOOLLINKOPTS = -ldl $(ExportSymbols) - +TOOLLINKOPTS = -ldl KEEP_SYMBOLS = 1 include $(LEVEL)/Makefile.common diff --git a/tools/lli/Makefile b/tools/lli/Makefile index b5b7c3d26b9..a0e73d71500 100644 --- a/tools/lli/Makefile +++ b/tools/lli/Makefile @@ -5,6 +5,6 @@ USEDLIBS = bcreader vmcore analysis.a support.a target.a transforms.a # Have gcc tell the linker to export symbols from the program so that # dynamically loaded modules can be linked against them. # -TOOLLINKOPTS = -ldl $(ExportSymbols) +TOOLLINKOPTS = -ldl include $(LEVEL)/Makefile.common diff --git a/tools/opt/Makefile b/tools/opt/Makefile index bde049fdc88..14fe05d9aae 100644 --- a/tools/opt/Makefile +++ b/tools/opt/Makefile @@ -7,8 +7,8 @@ USEDLIBS = bcreader bcwriter instrument profpaths \ livevar scalaropts \ ipo ipa.a datastructure transforms target.a analysis \ transformutils vmcore support -TOOLLINKOPTS = -ldl $(ExportSymbols) +TOOLLINKOPTS = -ldl KEEP_SYMBOLS = 1 include $(LEVEL)/Makefile.common