fix for fixinc.sh...

Bruce Korb korbb@datadesign.com
Fri May 29 15:15:00 GMT 1998


Hi,

This time it was finally fairly easy to create what I needed.
I used this to force fixincludes operation on a Linux box
and then rebuilt the compiler with itself successfully.
(I think that counts for the full three rounds since, actually,
the final output is a fourth generation compilation!)
This was using today's version of the compiler.

Regards,
    Bruce

> diff -C5 O*Makefile.in Makefile.in
*** OLDMakefile.in      Fri May 29 08:35:15 1998
--- Makefile.in Fri May 29 10:12:13 1998
***************
*** 1959,1973 ****
  # Now that gfloat.h no longer depends upon enquire, this is actually a no-op.
  stmp-headers:
        touch $@

  fixinc.sh :
!    INSTALLDIR=`cd $(srcdir) ; pwd` \
!    CC=$(CC) MAKE=$(MAKE) CFLAGS="$(CFLAGS)" ; \
!    export INSTALLDIR CC MAKE CFLAGS ; \
!        ( cd ../contrib/fixinc ; \
!        $(SHELL) mkfixinc.sh $(target) $$INSTALLDIR )

  # Build fixed copies of system files.
  stmp-fixinc: $(FIXINCLUDES) gsyslimits.h
        rm -rf include
        mkdir include
--- 1957,1977 ----
  # Now that gfloat.h no longer depends upon enquire, this is actually a no-op.
  stmp-headers:
        touch $@

  fixinc.sh :
!    DEST=`cd $(srcdir) ; pwd`/$@ CC=$(CC) MAKE=$(MAKE) CFLAGS="$(CFLAGS)" \
!    export DEST CC MAKE CFLAGS ; \
!    echo DEST=$$DEST CC=$$CC MAKE=$$MAKE CFLAGS=$$CFLAGS ; \
!    cd ../contrib/fixinc ;  \
!        $(SHELL) mkfixinc.sh $(target) $$DEST

  # Build fixed copies of system files.
  stmp-fixinc: $(FIXINCLUDES) gsyslimits.h
        rm -rf include
        mkdir include





More information about the Gcc-patches mailing list