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 2.96: limits.h gets built incorrectly for linux-gnu targets


Hello,

 When building a cross-compiler for a linux-gnu target make is unable to
find glibc's limits.h header which makes the build process assume the
target does not provide it.  This is due to the fact glibc headers do not
need to be fixed and are usually installed in ${tooldir}/include directly.

 The following patch makes $(CROSS_SYSTEM_HEADER_DIR) be overriden for
linux-gnu targets to make it point to glibc headers.  It actually makes
the building of a cross-compiler consistent with building a native one. 

Tue Jun  6 16:57:29 2000  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>

	* config/t-linux: Set CROSS_SYSTEM_HEADER_DIR to
	$(tooldir)/include.

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

diff -u --recursive --new-file egcs-20000501.macro/gcc/config/t-linux egcs-20000501/gcc/config/t-linux
--- egcs-20000501.macro/gcc/config/t-linux	Wed Dec 16 21:00:09 1998
+++ egcs-20000501/gcc/config/t-linux	Sat May 20 17:25:57 2000
@@ -14,3 +14,6 @@
 LIBGCC1 = 
 CROSS_LIBGCC1 =
 LIBGCC1_TEST =
+
+# Dir to search for system headers for cross-make.
+CROSS_SYSTEM_HEADER_DIR = $(tooldir)/include


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