summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-04-28 18:48:08 +0000
committerobrien <obrien@FreeBSD.org>1999-04-28 18:48:08 +0000
commit522e272a7bbc871510c4447a31ce6ce84e90a698 (patch)
treeb2f88d73c8dcfb64fb094bf64a1eabe612cf6855 /gnu
parentabacf8411010fefe1ca0583584ffc9920e04f8f9 (diff)
downloadFreeBSD-src-522e272a7bbc871510c4447a31ce6ce84e90a698.zip
FreeBSD-src-522e272a7bbc871510c4447a31ce6ce84e90a698.tar.gz
Rather than hack config/freebsd.h to contain our hacks for a native compiler,
just include them in tm.h (as built from cc/cc_tools/Makefile). This will reduce the diffs from the vendor sources. Excellent idea by: jdp
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cc/cc_tools/Makefile3
-rw-r--r--gnu/usr.bin/cc/cc_tools/freebsd-native.h40
2 files changed, 42 insertions, 1 deletions
diff --git a/gnu/usr.bin/cc/cc_tools/Makefile b/gnu/usr.bin/cc/cc_tools/Makefile
index 01be445..721e19b 100644
--- a/gnu/usr.bin/cc/cc_tools/Makefile
+++ b/gnu/usr.bin/cc/cc_tools/Makefile
@@ -1,5 +1,5 @@
#
-# $Id: Makefile,v 1.30 1999/04/22 19:35:16 obrien Exp $
+# $Id: Makefile,v 1.31 1999/04/22 20:12:21 obrien Exp $
#
#
@@ -159,6 +159,7 @@ tm.h:
.if ${GCC_ARCH} == "i386"
echo '#include "${GCC_ARCH}/perform.h"' >> ${.TARGET}
.endif
+ echo '#include <freebsd-native.h>' >> ${.TARGET}
#-----------------------------------------------------------------------
# General things.
diff --git a/gnu/usr.bin/cc/cc_tools/freebsd-native.h b/gnu/usr.bin/cc/cc_tools/freebsd-native.h
new file mode 100644
index 0000000..6f5cc8f
--- /dev/null
+++ b/gnu/usr.bin/cc/cc_tools/freebsd-native.h
@@ -0,0 +1,40 @@
+/* $Id: freebsd.h,v 1.8 1999/04/22 17:45:01 obrien Exp $ */
+
+/* FREEBSD_NATIVE is defined when gcc is integrated into the FreeBSD
+ source tree so it can be configured appropriately without using
+ the GNU configure/build mechanism. */
+
+/* Look for the include files in the system-defined places. */
+
+#define GPLUSPLUS_INCLUDE_DIR "/usr/include/g++"
+#define GCC_INCLUDE_DIR "/usr/include"
+
+/* Now that GCC knows what the include path applies to, put the G++ one first.
+ C++ can now have include files that override the default C ones. */
+#undef INCLUDE_DEFAULTS
+#define INCLUDE_DEFAULTS \
+ { \
+ { GPLUSPLUS_INCLUDE_DIR, "C++", 1, 1 }, \
+ { GCC_INCLUDE_DIR, "GCC", 0, 0 }, \
+ { 0, 0, 0, 0 } \
+ }
+
+/* Under FreeBSD, the normal location of the compiler back ends is the
+ /usr/libexec directory. */
+
+#undef STANDARD_EXEC_PREFIX
+#undef TOOLDIR_BASE_PREFIX
+#undef MD_EXEC_PREFIX
+
+#define STANDARD_EXEC_PREFIX "/usr/libexec/"
+#define TOOLDIR_BASE_PREFIX "/usr/libexec/"
+#define MD_EXEC_PREFIX "/usr/libexec/"
+
+/* Under FreeBSD, the normal location of the various *crt*.o files is the
+ /usr/lib directory. */
+
+#undef STANDARD_STARTFILE_PREFIX
+#define STANDARD_STARTFILE_PREFIX "/usr/lib/"
+
+/* FreeBSD is 4.4BSD derived */
+#define bsd4_4
OpenPOWER on IntegriCloud