forked from OSchip/llvm-project
Use $(PLATFORMLIBDL) to selectively bring in -ldl only on those platforms where
it is needed. llvm-svn: 6753
This commit is contained in:
parent
c5ddcae8f5
commit
e38c7d9f2d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -18,7 +18,7 @@ USEDLIBS = mapping \
|
|||
bcwriter \
|
||||
vmcore \
|
||||
support
|
||||
TOOLLINKOPTS = -ldl
|
||||
TOOLLINKOPTS = $(PLATFORMLIBDL)
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue