diff --git a/lib/ExecutionEngine/Makefile b/lib/ExecutionEngine/Makefile index da98f66116f..6ee2d3f3abe 100644 --- a/lib/ExecutionEngine/Makefile +++ b/lib/ExecutionEngine/Makefile @@ -29,6 +29,6 @@ USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \ # Have gcc tell the linker to export symbols from the program so that # dynamically loaded modules can be linked against them. # -TOOLLINKOPTS = -ldl +TOOLLINKOPTS = $(PLATFORMLIBDL) include $(LEVEL)/Makefile.common diff --git a/tools/analyze/Makefile b/tools/analyze/Makefile index 72115dcea24..6fd5d940009 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 scalaropts.a vmcore support -TOOLLINKOPTS = -ldl +TOOLLINKOPTS = $(PLATFORMLIBDL) include $(LEVEL)/Makefile.common diff --git a/tools/bugpoint/Makefile b/tools/bugpoint/Makefile index b79e6c47aa3..2c4a72b7d99 100644 --- a/tools/bugpoint/Makefile +++ b/tools/bugpoint/Makefile @@ -8,6 +8,6 @@ ANALIBS = datastructure ipa target.a USEDLIBS = ipo scalaropts analysis $(OPTLIBS) $(ANALIBS) \ transformutils asmparser bcreader bcwriter vmcore support -TOOLLINKOPTS = -ldl +TOOLLINKOPTS = $(PLATFORMLIBDL) include $(LEVEL)/Makefile.common diff --git a/tools/llc/Makefile b/tools/llc/Makefile index aada21c6ac7..16156f110b5 100644 --- a/tools/llc/Makefile +++ b/tools/llc/Makefile @@ -18,7 +18,7 @@ USEDLIBS = mapping \ bcwriter \ vmcore \ support -TOOLLINKOPTS = -ldl +TOOLLINKOPTS = $(PLATFORMLIBDL) include $(LEVEL)/Makefile.common diff --git a/tools/lli/Makefile b/tools/lli/Makefile index da98f66116f..6ee2d3f3abe 100644 --- a/tools/lli/Makefile +++ b/tools/lli/Makefile @@ -29,6 +29,6 @@ USEDLIBS = lli-interpreter $(JITLIBS) $(ARCHLIBS) scalaropts analysis.a \ # Have gcc tell the linker to export symbols from the program so that # dynamically loaded modules can be linked against them. # -TOOLLINKOPTS = -ldl +TOOLLINKOPTS = $(PLATFORMLIBDL) include $(LEVEL)/Makefile.common diff --git a/tools/opt/Makefile b/tools/opt/Makefile index bc27e265014..ba23dabdb9a 100644 --- a/tools/opt/Makefile +++ b/tools/opt/Makefile @@ -6,6 +6,6 @@ USEDLIBS = bcreader bcwriter \ ipo ipa.a datastructure transforms target.a analysis \ transformutils vmcore support -TOOLLINKOPTS = -ldl +TOOLLINKOPTS = $(PLATFORMLIBDL) include $(LEVEL)/Makefile.common