COLLECT2 patches (v3)

Mark E. snowball3@usa.net
Sat Oct 31 08:59:00 GMT 1998


> These are my latest collect2 patches that generalize the code enough so
> DJGPP can use the template repository. This patch corrects not closing the
> redirect file previously opened. The patch is based on the Oct. 30th
> version of collect2.c.
> 

I forgot to include the gcc/Makefile.in patch to add pexecute.o to the collect2 
link. Sorry about that.

*** Makefile.in.orig	Mon Nov 30 12:29:38 1998
--- Makefile.in	Fri Oct 30 12:32:20 1998
***************
*** 1289,1299 ****
  mbchar.o: mbchar.c $(CONFIG_H) system.h gansidecl.h mbchar.h
  
  collect2$(exeext): collect2.o tlink.o hash.o cplus-dem.o underscore.o \
! 	version.o choose-temp.o mkstemp.o $(LIBDEPS)
  # Don't try modifying collect2 (aka ld) in place--it might be linking this.
  	-rm -f collect2$(exeext)
  	$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ collect2.o tlink.o hash.o \
! 	  cplus-dem.o underscore.o version.o choose-temp.o mkstemp.o 
$(LIBS)
  
  collect2.o : collect2.c $(CONFIG_H) system.h gansidecl.h gstab.h \
  	$(srcdir)/../include/obstack.h $(DEMANGLE_H)
--- 1289,1300 ----
  mbchar.o: mbchar.c $(CONFIG_H) system.h gansidecl.h mbchar.h
  
  collect2$(exeext): collect2.o tlink.o hash.o cplus-dem.o underscore.o \
! 	version.o choose-temp.o mkstemp.o pexecute.o $(LIBDEPS)
  # Don't try modifying collect2 (aka ld) in place--it might be linking this.
  	-rm -f collect2$(exeext)
  	$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ collect2.o tlink.o hash.o \
! 	  cplus-dem.o underscore.o version.o choose-temp.o mkstemp.o \
!         pexecute.o $(LIBS)
  
  collect2.o : collect2.c $(CONFIG_H) system.h gansidecl.h gstab.h \
  	$(srcdir)/../include/obstack.h $(DEMANGLE_H)

-- 
Mark Elbrecht snowball3@usa.net
http://members.xoom.com/snowball3/



More information about the Gcc-patches mailing list