This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc/build-make wrongly disables fixinc


the fragment gcc/build-make is included when build!=host .
it disables fixinc by including the lines:
    # To build the native compiler with the cross compiler, the headers 
    # for the target are already fixed. And /usr/include is for host, not
    # target.
    STMP_FIXINC =
    STMP_FIXPROTO =

however, if you're building a canadian cross (such as
hpux-x-cygwin-x-aix), then you do need to apply fixinc to
the target headers in $(tooldir)/sys-include .

another symptom is: since sys-include/limits.h exists, gcc
will create a limits.h that wants "syslimits.h", but
syslimits.h won't exist since it's only created by the
stmp-fixinc target.

this patch is based on the theory that it's harmless to run
stmp-fixinc when sys-include is nonexistent or empty.

if this patch is correct, then I don't see a reason for
STMP_FIXINC any more, and it can probably be deleted.
STMP_FIXPROTO still looks necessary though.

2001-02-20  Felix Lee  <flee@redhat.com>

	* build-make: sometimes we do need to run fixinc.

RCS file: /cvs/gcc/gcc/gcc/build-make,v
retrieving revision 1.6
diff -u -p -r1.6 build-make
--- build-make	2001/01/03 14:23:39	1.6
+++ build-make	2001/02/21 00:30:28
@@ -20,11 +20,8 @@ HOST_ALLOCA=$(ALLOCA)
 HOST_MALLOC=$(MALLOC)
 HOST_OBSTACK=$(OBSTACK)
 
-# To build the native compiler with the cross compiler, the headers 
-# for the target are already fixed. And /usr/include is for host, not
-# target.
-STMP_FIXINC =
-STMP_FIXPROTO =
+# Make sure we don't run fixinc on /usr/include.
+SYSTEM_HEADER_DIR = $(CROSS_SYSTEM_HEADER_DIR)
 
 # Cause installation using install-build. We do nothing here.
 #INSTALL_TARGET = install-build


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]