⛏️ index : buildtools.git

author Ingo Weinhold <ingo_weinhold@gmx.de> 2013-07-16 20:54:24.0 +02:00:00
committer Ingo Weinhold <ingo_weinhold@gmx.de> 2013-07-17 0:43:19.0 +02:00:00
commit
ce0819bf466c23b4932869da8f971dfae9387fbf [patch]
tree
29a1b037fdfce1324340b2289912bc754d10cd65
parent
bb9d1326db65704efa001db9fd91e99394b2a54a
download
ce0819bf466c23b4932869da8f971dfae9387fbf.tar.gz

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(+)

diff --git a/legacy/gcc/gcc/config/i386/t-haiku b/legacy/gcc/gcc/config/i386/t-haiku
index b475c7d..8d81310 100644
--- a/legacy/gcc/gcc/config/i386/t-haiku
+++ b/legacy/gcc/gcc/config/i386/t-haiku
@@ -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