From e38c7d9f2d67873ed45b6f33f4d7f5e08eabdac1 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Tue, 17 Jun 2003 20:09:18 +0000 Subject: [PATCH] Use $(PLATFORMLIBDL) to selectively bring in -ldl only on those platforms where it is needed. llvm-svn: 6753 --- llvm/lib/ExecutionEngine/Makefile | 2 +- llvm/tools/analyze/Makefile | 2 +- llvm/tools/bugpoint/Makefile | 2 +- llvm/tools/llc/Makefile | 2 +- llvm/tools/lli/Makefile | 2 +- llvm/tools/opt/Makefile | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/lib/ExecutionEngine/Makefile b/llvm/lib/ExecutionEngine/Makefile index da98f66116f4..6ee2d3f3abe0 100644 --- a/llvm/lib/ExecutionEngine/Makefile +++ b/llvm/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/llvm/tools/analyze/Makefile b/llvm/tools/analyze/Makefile index 72115dcea24f..6fd5d9400097 100644 --- a/llvm/tools/analyze/Makefile +++ b/llvm/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/llvm/tools/bugpoint/Makefile b/llvm/tools/bugpoint/Makefile index b79e6c47aa33..2c4a72b7d993 100644 --- a/llvm/tools/bugpoint/Makefile +++ b/llvm/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/llvm/tools/llc/Makefile b/llvm/tools/llc/Makefile index aada21c6ac7f..16156f110b5c 100644 --- a/llvm/tools/llc/Makefile +++ b/llvm/tools/llc/Makefile @@ -18,7 +18,7 @@ USEDLIBS = mapping \ bcwriter \ vmcore \ support -TOOLLINKOPTS = -ldl +TOOLLINKOPTS = $(PLATFORMLIBDL) include $(LEVEL)/Makefile.common diff --git a/llvm/tools/lli/Makefile b/llvm/tools/lli/Makefile index da98f66116f4..6ee2d3f3abe0 100644 --- a/llvm/tools/lli/Makefile +++ b/llvm/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/llvm/tools/opt/Makefile b/llvm/tools/opt/Makefile index bc27e265014f..ba23dabdb9aa 100644 --- a/llvm/tools/opt/Makefile +++ b/llvm/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