committed, cris-axis-linux-gnu: don't override LIMITS_H_TEST if inhibit_libc.

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Wed Sep 12 05:48:00 GMT 2007


This enables cris-axis-linux-gnu configured with
--enable-languages=c --without-headers to compile libgcc
(without patches, Segher! ;)

The same, but "ifeq", is used in the "main" gcc Makefile for
setting INHIBIT_LIBC_CFLAGS, so it should be safe.

        * config/cris/t-linux (LIMITS_H_TEST): Only define if not inhibit_libc.

Index: config/cris/t-linux
===================================================================
--- config/cris/t-linux	(revision 128406)
+++ config/cris/t-linux	(working copy)
@@ -3,4 +3,6 @@ CRTSTUFF_T_CFLAGS_S = $(TARGET_LIBGCC2_C
 
 # We *know* we have a limits.h in the glibc library, with extra
 # definitions needed for e.g. libgfortran.
+ifneq ($(inhibit_libc),true)
 LIMITS_H_TEST = :
+endif

brgds, H-P



More information about the Gcc-patches mailing list