summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-03-02 02:56:59 +0000
committerobrien <obrien@FreeBSD.org>2001-03-02 02:56:59 +0000
commitc6f64d9c7573f862ee3d3ccf62285dd84bf864cf (patch)
tree662518578395b7a15630811fba03abea772acadc /gnu
parentc2acd8fa318422ed45e6058d0f7f6a753150b8e2 (diff)
downloadFreeBSD-src-c6f64d9c7573f862ee3d3ccf62285dd84bf864cf.zip
FreeBSD-src-c6f64d9c7573f862ee3d3ccf62285dd84bf864cf.tar.gz
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.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cc/Makefile.inc2
-rw-r--r--gnu/usr.bin/cc/cc_tools/freebsd-native.h3
2 files changed, 4 insertions, 1 deletions
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. */
OpenPOWER on IntegriCloud