This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Small patch for canadian crosses
- To: gcc-patches at gcc dot gnu dot org
- Subject: Small patch for canadian crosses
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Fri, 17 Mar 2000 22:19:20 +0000
- Organization: Red Hat UK Ltd.
Canadian cross builds break because in Makefile.in, STMP_FIXINC gets set to
nothing, so the stmp-fixinc make rule never gets invoked (target headers
assumed fixed), so the include directory never gets mkdir'd.
This patch moves the line that makes the directory from stmp-fixproto to
stmp-fixinc (which is a dependency of stmp-fixproto).
Please check this in, thanks.
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/Makefile.in,v
retrieving revision 1.403
diff -u -5 -p -r1.403 Makefile.in
--- Makefile.in 2000/03/16 14:56:54 1.403
+++ Makefile.in 2000/03/17 22:18:28
@@ -2148,10 +2148,11 @@ stmp-int-hdrs: $(STMP_FIXINC) $(USER_H)
# Copy in the headers provided with gcc.
# The sed command gets just the last file name component;
# this is necessary because VPATH could add a dirname.
# Using basename would be simpler, but some systems don't have it.
# The touch command is here to workaround an AIX/Linux NFS bug.
+ -if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi
for file in .. $(USER_H); do \
if [ X$$file != X.. ]; then \
realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
touch include/$$realfile; \
rm -f include/$$realfile; \
@@ -2285,11 +2286,10 @@ fixhdr.ready: fix-header
# stmp-int-headers is to make sure fixincludes has already finished.
# The if statement is so that we don't run fixproto a second time
# if it has already been run on the files in `include'.
stmp-fixproto: fixhdr.ready fixproto stmp-int-hdrs
@echo "Various warnings and error messages from fixproto are normal"
- -if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi
-if [ -f include/fixed ] ; then true; \
else \
: This line works around a 'make' bug in BSDI 1.1.; \
FIXPROTO_DEFINES="$(FIXPROTO_DEFINES)"; export FIXPROTO_DEFINES; \
mkinstalldirs="$(SHELL) $(srcdir)/mkinstalldirs"; \