From c6f64d9c7573f862ee3d3ccf62285dd84bf864cf Mon Sep 17 00:00:00 2001 From: obrien Date: Fri, 2 Mar 2001 02:56:59 +0000 Subject: Define "FREEBSD_NATIVE" in the freebsd-native header to reduce the amount of stuff (and thus length of error output) we put on the invocation command line. Also follow the new FSF/GNU style of giving the symbol a value so it can be used in `if()' statements in addition to `#if' so seldomly compiled in code (on some platforms) gets compiled always, to help reduce bit-rot. --- gnu/usr.bin/cc/Makefile.inc | 2 +- gnu/usr.bin/cc/cc_tools/freebsd-native.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc index 62f86be..49f84fa 100644 --- a/gnu/usr.bin/cc/Makefile.inc +++ b/gnu/usr.bin/cc/Makefile.inc @@ -27,7 +27,7 @@ USE_EGCS_HAIFA= 1 version!= sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${GCCDIR}/version.c -CFLAGS+= -DFREEBSD_NATIVE -DIN_GCC -DHAVE_CONFIG_H +CFLAGS+= -DIN_GCC -DHAVE_CONFIG_H CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}/usr\" # If building 64-bit longs for the i386, "_LARGE_LONG" should also be defined diff --git a/gnu/usr.bin/cc/cc_tools/freebsd-native.h b/gnu/usr.bin/cc/cc_tools/freebsd-native.h index fd04a68..f1063fe 100644 --- a/gnu/usr.bin/cc/cc_tools/freebsd-native.h +++ b/gnu/usr.bin/cc/cc_tools/freebsd-native.h @@ -4,6 +4,9 @@ source tree so it can be configured appropriately without using the GNU configure/build mechanism. */ +#undef FREEBSD_NATIVE +#define FREEBSD_NATIVE 1 + #undef SYSTEM_INCLUDE_DIR /* We don't need one for now. */ #undef GCC_INCLUDE_DIR /* We don't need one for now. */ #undef TOOL_INCLUDE_DIR /* We don't need one for now. */ -- cgit v1.1