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.
This commit is contained in:
Ingo Weinhold 2013-07-16 20:54:24 +02:00
parent bb9d1326db
commit ce0819bf46

View File

@ -10,6 +10,12 @@ CROSS_SYSTEM_HEADER_DIR := $(CROSS_SYSTEM_HEADER_DIR)/posix
# 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