aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorBill Cox <bill@cygnus>1994-04-11 23:17:18 +0000
committerBill Cox <bill@cygnus>1994-04-11 23:17:18 +0000
commit099c286e7440447b4c7d9e1ced7b86ffaa255c29 (patch)
tree60a2b627693df63e457b3b79fe6905e2a341d35a /ld
parentbf08d1e26655066aa16637662bb4eb2a2e3a3aad (diff)
downloadgdb-099c286e7440447b4c7d9e1ced7b86ffaa255c29.zip
gdb-099c286e7440447b4c7d9e1ced7b86ffaa255c29.tar.gz
gdb-099c286e7440447b4c7d9e1ced7b86ffaa255c29.tar.bz2
* Makefile.in (check): Set TCL_LIBRARY for runtest.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/Makefile.in36
2 files changed, 36 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 1de4228..cbb3287 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -6,6 +6,10 @@ Mon Apr 11 12:32:57 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
exist, get crtbegin based on gcc -print-libgcc-file-name.
(HOSTING_LIBS): Similar change for ../gcc/crtend.o.
+Mon Apr 11 10:31:00 1994 Bill Cox (bill@rtl.cygnus.com)
+
+ * Makefile.in (check): Set TCL_LIBRARY for runtest.
+
Wed Apr 6 00:09:37 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
* configure.in (hppa*-*-*elf*): Don't require "-hp-" for the
diff --git a/ld/Makefile.in b/ld/Makefile.in
index 306455e..b43006f 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -117,7 +117,13 @@ CXXFLAGS = -fgnu-linker
CXX = g++
# Setup the testing framework, if you have one
-RUNTEST = runtest
+EXPECT = `if [ -f $${rootme}/../../expect/expect ] ; then \
+ echo $${rootme}/../../expect/expect ; \
+ else echo expect ; fi`
+
+RUNTEST = `if [ -f $${srcdir}/../../dejagnu/runtest ] ; then \
+ echo $${srcdir}/../../dejagnu/runtest ; \
+ else echo runtest ; fi`
RUNTESTFLAGS =
RUNTEST_CC = `if [ -f ../gcc/xgcc ] ; then \
echo ../gcc/xgcc -B../gcc/; \
@@ -378,7 +384,7 @@ em_coff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
${GENSCRIPTS} coff_sparc
em_elf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \
- $(srcdir)/emultempl/ppc.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32ppc
$(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
@@ -442,6 +448,12 @@ site.exp: ./config.status Makefile
check: ld.new site.exp
@if [ $(host_canonical) = $(target_canonical) ]; then \
+ rootme=`pwd`; export rootme; \
+ srcdir=${srcdir} ; export srcdir ; \
+ EXPECT=${EXPECT} ; export EXPECT ; \
+ if [ -f $${rootme}/../expect/expect ] ; then \
+ TCL_LIBRARY=$${srcdir}/../tcl/library ; \
+ export TCL_LIBRARY ; fi ; \
$(RUNTEST) --tool ld \
--srcdir $(srcdir)/testsuite $(RUNTESTFLAGS) \
CC="$(RUNTEST_CC)" CFLAGS="$(RUNTEST_CFLAGS)" \
@@ -481,9 +493,25 @@ cdtest: cdtest-main.o cdtest-func.o cdtest-foo.o ld.new
./ld.new $(HOSTING_EMU) -o cdtest $(HOSTING_CRT0) \
cdtest-main.o cdtest-func.o cdtest-foo.o $(HOSTING_LIBS)
-check-cdtest: cdtest $(srcdir)/cdtest.exp
- ./cdtest >cdtest.out
+cdtest.out: cdtest
+ ./cdtest > cdtest.tmp
+ mv cdtest.tmp cdtest.out
+
+cdtest-ur.o: cdtest-main.o cdtest-func.o cdtest-foo.o ld.new
+ ./ld.new $(HOSTING_EMU) -o cdtest-ur.o -Ur cdtest-main.o \
+ cdtest-func.o cdtest-foo.o
+
+cdtest-ur: cdtest-ur.o
+ ./ld.new $(HOSTING_EMU) -o cdtest-ur $(HOSTING_CRT0) cdtest-ur.o \
+ $(HOSTING_LIBS)
+
+cdtest-ur.out: cdtest-ur
+ ./cdtest-ur > cdtest-ur.tmp
+ mv cdtest-ur.tmp cdtest-ur.out
+
+check-cdtest: cdtest.out cdtest-ur.out $(srcdir)/cdtest.exp
diff $(srcdir)/cdtest.exp cdtest.out
+ diff $(srcdir)/cdtest.exp cdtest-ur.out
.PHONY: check-cdtest