Patch to libiberty necessary for 4.3BSD
Michael Sokolov
msokolov@ivan.Harhan.ORG
Mon Apr 10 15:38:00 GMT 2000
Hi there,
The patch below is necessary for libiberty (and hence gcc, binutils, gdb, etc.)
to build on 4.3BSD. I don't see how it can negatively affect any other platform
and the new construct seems more efficient to me. Is this patch OK? If so, can
someone commit it? Thanks.
--
Michael Sokolov Harhan Engineering Laboratory
Public Service Agent International Free Computing Task Force
International Engineering and Science Task Force
615 N GOOD LATIMER EXPY STE #4
DALLAS TX 75204-5852 USA
Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon)
2000-04-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
* Makefile.in (*-subdir): The construct used to handle the case of no
SUBDIRS broke on 4.3BSD where make invokes sh with -e. Replaced it with
a different construct for the same effect that doesn't hit this and is
more efficient.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/libiberty/Makefile.in,v
retrieving revision 1.39
diff -c -3 -p -r1.39 Makefile.in
*** Makefile.in 2000/03/24 21:32:08 1.39
--- Makefile.in 2000/04/10 22:25:47
*************** all-subdir check-subdir installcheck-sub
*** 244,252 ****
install-info-subdir clean-info-subdir dvi-subdir install-subdir \
etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
maintainer-clean-subdir:
! @target=`echo $@ | sed -e 's/-subdir//'`; \
! for dir in . $(SUBDIRS) ; do \
! test $$dir = . || (cd $$dir && $(MAKE) $$target) || exit 1; \
done
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) $(ALLOCA): stamp-picdir
--- 244,253 ----
install-info-subdir clean-info-subdir dvi-subdir install-subdir \
etags-subdir mostlyclean-subdir clean-subdir distclean-subdir \
maintainer-clean-subdir:
! @if test "x$(SUBDIRS)" = x; then exit 0; fi; \
! target=`echo $@ | sed -e 's/-subdir//'`; \
! for dir in $(SUBDIRS) ; do \
! cd $$dir && $(MAKE) $$target; \
done
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS) $(ALLOCA): stamp-picdir
More information about the Gcc-patches
mailing list