From 3183d30867bf00a0647d2fce94f9165625ce2560 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 19 Nov 2003 01:37:27 +0000 Subject: [PATCH] Change the system name from 'FreeBSD' to 'DragonFly'. Final cpp glue to define __DragonFly__ and __DragonFly_cc_version. Note that __FreeBSD__ and __FreeBSD_cc_version are being left intact. --- gnu/usr.bin/cc/cc_tools/Makefile | 8 ++-- gnu/usr.bin/cc/cc_tools/dragonfly-native.h | 53 ++++++++++++++++++++++ 2 files changed, 57 insertions(+), 4 deletions(-) create mode 100644 gnu/usr.bin/cc/cc_tools/dragonfly-native.h diff --git a/gnu/usr.bin/cc/cc_tools/Makefile b/gnu/usr.bin/cc/cc_tools/Makefile index 16db4c6e2f..b769f333f6 100644 --- a/gnu/usr.bin/cc/cc_tools/Makefile +++ b/gnu/usr.bin/cc/cc_tools/Makefile @@ -1,5 +1,5 @@ # $FreeBSD: src/gnu/usr.bin/cc/cc_tools/Makefile,v 1.48.2.6 2002/06/20 23:13:31 obrien Exp $ -# $DragonFly: src/gnu/usr.bin/cc/cc_tools/Attic/Makefile,v 1.2 2003/06/17 04:25:45 dillon Exp $ +# $DragonFly: src/gnu/usr.bin/cc/cc_tools/Attic/Makefile,v 1.3 2003/11/19 01:37:27 dillon Exp $ # # This could probably be merged with ../cc_int/Makefile, but bsd.lib.mk @@ -138,16 +138,16 @@ tm.h: .if ${TARGET_ARCH} == "i386" echo '#include "${TARGET_ARCH}/att.h"' >> ${.TARGET} .endif - echo '#include ' >> ${.TARGET} + echo '#include ' >> ${.TARGET} echo '#include "dbxelf.h"' >> ${.TARGET} .if exists(${GCCDIR}/config/${TARGET_ARCH}/elf.h) echo '#include "${TARGET_ARCH}/elf.h"' >> ${.TARGET} .endif - echo '#include "${TARGET_ARCH}/freebsd.h"' >> ${.TARGET} + echo '#include "${TARGET_ARCH}/dragonfly.h"' >> ${.TARGET} .if ${TARGET_ARCH} == "i386" echo '#include "${TARGET_ARCH}/perform.h"' >> ${.TARGET} .endif - echo '#include ' >> ${.TARGET} + echo '#include ' >> ${.TARGET} #----------------------------------------------------------------------- # General things. diff --git a/gnu/usr.bin/cc/cc_tools/dragonfly-native.h b/gnu/usr.bin/cc/cc_tools/dragonfly-native.h new file mode 100644 index 0000000000..fe1610ee85 --- /dev/null +++ b/gnu/usr.bin/cc/cc_tools/dragonfly-native.h @@ -0,0 +1,53 @@ +/* $FreeBSD: src/gnu/usr.bin/cc/cc_tools/freebsd-native.h,v 1.5.2.9 2002/05/01 20:04:37 obrien Exp $ */ +/* $DragonFly: src/gnu/usr.bin/cc/cc_tools/Attic/dragonfly-native.h,v 1.1 2003/11/19 01:37:27 dillon 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. */ + +#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. */ +#undef LOCAL_INCLUDE_DIR /* We don't wish to support one. */ + +/* Look for the include files in the system-defined places. */ +#define GPLUSPLUS_INCLUDE_DIR PREFIX"/include/g++" +#define GCC_INCLUDE_DIR PREFIX"/include" +#ifdef CROSS_COMPILE +#define CROSS_INCLUDE_DIR PREFIX"/include" +#else +#define STANDARD_INCLUDE_DIR PREFIX"/include" +#endif + +/* Under FreeBSD, the normal location of the compiler back ends is the + /usr/libexec directory. + + ``cc --print-search-dirs'' gives: + install: STANDARD_EXEC_PREFIX/(null) + programs: /usr/libexec//:STANDARD_EXEC_PREFIX:MD_EXEC_PREFIX + libraries: MD_EXEC_PREFIX:MD_STARTFILE_PREFIX:STANDARD_STARTFILE_PREFIX +*/ + +#undef TOOLDIR_BASE_PREFIX /* Old?? This is not documented. */ +#define STANDARD_EXEC_PREFIX PREFIX"/libexec/" +#undef MD_EXEC_PREFIX /* We don't want one. */ + +/* Under FreeBSD, the normal location of the various *crt*.o files is the + /usr/lib directory. */ + +#define STANDARD_STARTFILE_PREFIX PREFIX"/lib/" +#ifdef CROSS_COMPILE +#define CROSS_STARTFILE_PREFIX PREFIX"/lib/" +#endif +#undef MD_STARTFILE_PREFIX /* We don't need one for now. */ + +/* For the native system compiler, we actually build libgcc in a profiled + version. So we should use it with -pg. */ +#define LIBGCC_SPEC "%{!pg: -lgcc} %{pg: -lgcc_p}" +#define LIBSTDCXX_PROFILE "-lstdc++_p" +#define MATH_LIBRARY_PROFILE "-lm_p" + +/* FreeBSD is 4.4BSD derived */ +#define bsd4_4 -- 2.41.0