t-haiku: work-around the broken limits.h check
Checking for $(SYSTEM_HEADER_DIR)/limits.h doesn't work when
cross-compiling a native compiler, since that refers to the location of
the header on the target platform.
Diff
legacy/gcc/gcc/config/i386/t-haiku | 6 ++++++
1 file changed, 6 insertions(+)
@@ -10,6 +10,12 @@
# Use the system assert.h
INSTALL_ASSERT_H =
# Override the test that checks for the existence of a system limits.h header.
# When cross compiling a native compiler for Haiku we don't actually know where
# the system headers the cross compiler uses are. But we know Haiku has a
# limits.h,
LIMITS_H_TEST = true
winnt.o: $(srcdir)/config/i386/winnt.c
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/winnt.c