aboutsummaryrefslogtreecommitdiff
path: root/ld/Makefile.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-02-07 19:03:38 +0000
committerIan Lance Taylor <ian@airs.com>1996-02-07 19:03:38 +0000
commit2e5983457a7e68ef9089acf42d80be836ba15c01 (patch)
treee227606f78530b2bcd310fd0506e632505efb540 /ld/Makefile.in
parentc07dc45948fa30ca7b5035f5802322480d5c6ac5 (diff)
downloadgdb-2e5983457a7e68ef9089acf42d80be836ba15c01.zip
gdb-2e5983457a7e68ef9089acf42d80be836ba15c01.tar.gz
gdb-2e5983457a7e68ef9089acf42d80be836ba15c01.tar.bz2
* configure.in: Look for --enable-shared. Change the value of
BFDLIB when linking against a shared library on SunOS. * configure: Rebuild. * configure.host: If using a shared BFD library, try to pass a reasonable -rpath option when linking. * Makefile.in (BFDLIB): Set to @BFDLIB@.
Diffstat (limited to 'ld/Makefile.in')
-rw-r--r--ld/Makefile.in24
1 files changed, 15 insertions, 9 deletions
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 1b70cf6..75c8d9a 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -62,6 +62,7 @@ AR = ar
AR_FLAGS = qv
CC = @CC@
CFLAGS = @CFLAGS@
+HLDFLAGS = @HLDFLAGS@
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
RANLIB = ranlib
@@ -187,8 +188,8 @@ ALL_CFLAGS = $(INCLUDES) @HDEFINES@ $(CFLAGS)
.c.o:
$(CC) -c $(ALL_CFLAGS) $<
-# for self hosting
-BFDLIB = ../bfd/libbfd.a
+BFDDEP = ../bfd/libbfd.a
+BFDLIB = @BFDLIB@
LIBIBERTY = ../libiberty/libiberty.a
ALL_EMULATIONS = ea29k.o ealpha.o earmaoutl.o earmaoutb.o \
@@ -198,10 +199,10 @@ ALL_EMULATIONS = ea29k.o ealpha.o earmaoutl.o earmaoutb.o \
eh8300h.o eh8500.o eh8500b.o eh8500c.o eh8500m.o eh8500s.o \
ehp300bsd.o ehp3hpux.o ehppaelf.o ei386aout.o ei386bsd.o \
ei386coff.o ei386go32.o ei386linux.o ei386lynx.o ei386mach.o \
- ei386nbsd.o ei386nw.o elnk960.o em68k4knbsd.o em68kaout.o em68kcoff.o \
- em68kelf.o em68klynx.o em68knbsd.o em88kbcs.o emipsbig.o emipsbsd.o \
- emipsidt.o emipsidtl.o emipslit.o enews.o ens32knbsd.o eppcnw.o \
- eriscix.o esa29200.o eshl.o esh.o esparclynx.o esparcnbsd.o \
+ ei386nbsd.o ei386nw.o elnk960.o em68k4knbsd.o em68kaout.o em68kaux.o \
+ em68kcoff.o em68kelf.o em68klynx.o em68knbsd.o em88kbcs.o emipsbig.o \
+ emipsbsd.o emipsidt.o emipsidtl.o emipslit.o enews.o ens32knbsd.o \
+ eppcnw.o eriscix.o esa29200.o eshl.o esh.o esparclynx.o esparcnbsd.o \
est2000.o esun3.o esun4.o evanilla.o evax.o evsta.o \
ez8001.o ez8002.o ei386pe.o earmpe.o eelf32b4300.o eelf32l4300.o \
eaixppc.o eaixrs6.o eppcmacos.o edelta68.o eppcpe.o
@@ -266,7 +267,7 @@ ldlex.c: ldlex.l
# These all start with e so 'make clean' can find them.
-GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} @host_alias@ @target_alias@ ${EMUL} "@NATIVE_LIB_DIRS@"
+GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} @host@ @target@ @target_alias@ ${EMUL} "@NATIVE_LIB_DIRS@"
GEN_DEPENDS = $(srcdir)/genscripts.sh $(srcdir)/emultempl/stringify.sed
esun4.c: $(srcdir)/emulparams/sun4.sh \
@@ -374,6 +375,9 @@ egld960.c: $(srcdir)/emulparams/gld960.sh \
egld960coff.c: $(srcdir)/emulparams/gld960coff.sh \
$(srcdir)/emultempl/gld960c.em $(srcdir)/scripttempl/i960.sc ${GEN_DEPENDS}
${GENSCRIPTS} gld960coff
+em68kaux.c: $(srcdir)/emulparams/m68kaux.sh \
+ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kaux.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} m68kaux
em68kcoff.c: $(srcdir)/emulparams/m68kcoff.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS}
${GENSCRIPTS} m68kcoff
@@ -522,8 +526,8 @@ erce.c: $(srcdir)/emulparams/rce.sh \
${GENSCRIPTS} rce
# end-sanitize-rce
-$(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
- $(CC) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(EXTRALIBS)
+$(LD_PROG): $(OFILES) $(BFDDEP) $(LIBIBERTY)
+ $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(EXTRALIBS)
# The generated emulation files mostly have the same dependencies.
$(EMULATION_OFILES): ../bfd/bfd.h sysdep.h config.h $(INCDIR)/bfdlink.h \
@@ -573,6 +577,8 @@ check: site.exp
r=`pwd`; export r; \
srcroot=`cd ${srcdir}; pwd` ; export srcroot ; \
EXPECT=${EXPECT} ; export EXPECT ; \
+ LD_LIBRARY_PATH=$$r/../bfd:$$r/../opcodes:$$LD_LIBRARY_PATH; \
+ export LD_LIBRARY_PATH; \
if [ -f $$r/../expect/expect ] ; then \
TCL_LIBRARY=$${srcroot}/../tcl/library ; \
export TCL_LIBRARY ; \