Use $(PLATFORMLIBDL) to selectively bring in -ldl only on those platforms where
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 17 Jun 2003 20:09:18 +0000 (20:09 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 17 Jun 2003 20:09:18 +0000 (20:09 +0000)
it is needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6753 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Makefile
tools/analyze/Makefile
tools/bugpoint/Makefile
tools/llc/Makefile
tools/lli/Makefile
tools/opt/Makefile

index da98f66116f44e59340df1c72c91b85c87bd10c9..6ee2d3f3abe04a8f653837aca5281926e2c20df6 100644 (file)
@@ -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
index 72115dcea24f8e65e38626ae4fc0f0d282fa6660..6fd5d9400097aa0a308729a136958929edaea9a4 100644 (file)
@@ -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
 
index b79e6c47aa33a14c3bdbfc0b403a158c7111d837..2c4a72b7d99315761d84bcd6762de4627b3bc717 100644 (file)
@@ -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
index aada21c6ac7f123f9a3307ffd86191940ffd37ad..16156f110b5c4897390fc5fd73d579d2fcc4e941 100644 (file)
@@ -18,7 +18,7 @@ USEDLIBS = mapping \
           bcwriter \
            vmcore \
            support
-TOOLLINKOPTS = -ldl
+TOOLLINKOPTS = $(PLATFORMLIBDL)
 
 include $(LEVEL)/Makefile.common
 
index da98f66116f44e59340df1c72c91b85c87bd10c9..6ee2d3f3abe04a8f653837aca5281926e2c20df6 100644 (file)
@@ -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
index bc27e265014fe60b91b7691ab17b70a26f06ddb2..ba23dabdb9aa3cdace2e4b7bae3ddd17584081fd 100644 (file)
@@ -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