This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
committed, cris-axis-linux-gnu: don't override LIMITS_H_TEST if inhibit_libc.
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 12 Sep 2007 04:39:47 +0200
- Subject: committed, cris-axis-linux-gnu: don't override LIMITS_H_TEST if inhibit_libc.
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