use bootstrap for check
authorK. Richard Pixley <rich@cygnus>
Sat, 2 May 1992 01:19:02 +0000 (01:19 +0000)
committerK. Richard Pixley <rich@cygnus>
Sat, 2 May 1992 01:19:02 +0000 (01:19 +0000)
ld/ChangeLog
ld/Makefile.in
ld/config/sparc.mh

index d51e664d478c93b25ac306d6ca9cb8c3167d95d1..174cb2d4ffbe9faf57ca04cfc79776a9b67ab71e 100644 (file)
@@ -1,3 +1,9 @@
+Fri May  1 18:17:52 1992  K. Richard Pixley  (rich@cygnus.com)
+
+       * config/sparc.mh: use ../gcc/libgcc.a on check if it exists.
+
+       * Makefile.in: use bootstrap for check.
+
 Fri May  1 13:03:41 1992  Steve Chamberlain  (sac@thepub.cygnus.com)
 
        * ldlex.l, ldlang.c, ldctor.c: lint
index d320ec5cb7f010eb796d3df590fe318b1c50c3f3..9db6ea64d28d9e692c53d7a78821bbbb6ec55234 100644 (file)
@@ -140,7 +140,7 @@ STAGESTUFF = *.x *.x[runN] *.sc[runN] $(GENERATED_SOURCES) $(GENERATED_HEADERS)
 
 all: Makefile $(LD_PROG)
 
-check:
+check: bootstrap
 info: ld.info
 
 ldgram.h ldgram.c: ldgram.y
index 260bbe1a1d526bf9e3d50152a762889250f58eab..4e7f4a081f6bf795a7485414d1d000623c63b5ae 100755 (executable)
@@ -2,6 +2,6 @@ YACC=yacc -tvd
 #CC=gcc -Wall -ansi
 #stuff for self hosting
 HOSTING_CRT0=/lib/crt0.o
-HOSTING_LIBS=/usr/latest/lib/gcc/sun4/libgcc.a  -lc
+HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else echo /usr/latest/lib/gcc/sun4/libgcc.a; fi`  -lc
 HOSTING_EMU=LDEMULATION=sun4; export LDEMULATION