a370115d7d
compiler. * Undo the diking out of cross compiler logic from gcc.c rev 1.16. * Add the `CROSS_STARTFILE_PREFIX' knob. * Add our own definition of `STANDARD_INCLUDE_DIR'. This should have been included in freebsd-native.h rev 1.5.
73 lines
2.4 KiB
C
73 lines
2.4 KiB
C
/* $FreeBSD$ */
|
|
|
|
/* 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
|
|
|
|
/* Fake out gcc/config/freebsd<version>.h. */
|
|
#define FBSD_MAJOR 5
|
|
|
|
#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/<OBJFORMAT>/:MD_EXEC_PREFIX
|
|
libraries: MD_EXEC_PREFIX:MD_STARTFILE_PREFIX:STANDARD_STARTFILE_PREFIX
|
|
|
|
We really don't need a "STANDARD_EXEC_PREFIX". However w/o it,
|
|
"--print-search-dirs" reports "install: /usr/local/lib/gcc-lib/(null)".
|
|
It is not harmful, but is just plain wrong. So we define a
|
|
"STANDARD_EXEC_PREFIX" to not be misleading. */
|
|
|
|
#undef TOOLDIR_BASE_PREFIX /* Old?? This is not documented. */
|
|
#define STANDARD_EXEC_PREFIX PREFIX"/libexec/"
|
|
#define MD_EXEC_PREFIX PREFIX"/libexec/"
|
|
|
|
/* 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}"
|
|
|
|
/* FreeBSD is 4.4BSD derived */
|
|
#define bsd4_4
|
|
|
|
/* Dike out [stupid, IMHO] libiberty functions. */
|
|
#define xmalloc_set_program_name(dummy)
|
|
#define xmalloc malloc
|
|
#define xcalloc calloc
|
|
#define xrealloc realloc
|
|
#define xstrdup strdup
|
|
#define xstrerror strerror
|
|
|
|
/* And now they want to replace ctype.h.... grr... [stupid, IMHO] */
|
|
#define xxxISDIGIT isdigit
|
|
#define xxxISGRAPH isgraph
|
|
#define xxxISLOWER islower
|
|
#define xxxISSPACE isspace
|
|
#define xxxTOUPPER toupper
|