1999-08-27 23:37:10 +00:00
|
|
|
/* $FreeBSD$ */
|
1999-04-28 18:48:08 +00:00
|
|
|
|
|
|
|
/* 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. */
|
|
|
|
|
2001-03-02 02:56:59 +00:00
|
|
|
#define FREEBSD_NATIVE 1
|
|
|
|
|
2001-12-18 03:19:11 +00:00
|
|
|
/* Fake out gcc/config/freebsd<version>.h. */
|
|
|
|
#define FBSD_MAJOR 5
|
|
|
|
|
1999-12-22 05:00:28 +00:00
|
|
|
#undef SYSTEM_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. */
|
1999-04-28 18:48:08 +00:00
|
|
|
|
1999-12-22 05:00:28 +00:00
|
|
|
/* Look for the include files in the system-defined places. */
|
1999-12-29 14:42:46 +00:00
|
|
|
#define GPLUSPLUS_INCLUDE_DIR PREFIX"/include/g++"
|
2002-06-05 16:10:59 +00:00
|
|
|
#define GPLUSPLUS_BACKWARD_INCLUDE_DIR PREFIX"/include/g++/backward"
|
1999-12-29 14:42:46 +00:00
|
|
|
#define GCC_INCLUDE_DIR PREFIX"/include"
|
|
|
|
#ifdef CROSS_COMPILE
|
|
|
|
#define CROSS_INCLUDE_DIR PREFIX"/include"
|
2002-02-20 19:41:54 +00:00
|
|
|
#else
|
|
|
|
#define STANDARD_INCLUDE_DIR PREFIX"/include"
|
1999-12-29 14:42:46 +00:00
|
|
|
#endif
|
1999-04-28 18:48:08 +00:00
|
|
|
|
|
|
|
/* Under FreeBSD, the normal location of the compiler back ends is the
|
1999-12-22 05:00:28 +00:00
|
|
|
/usr/libexec directory.
|
|
|
|
|
|
|
|
``cc --print-search-dirs'' gives:
|
|
|
|
install: STANDARD_EXEC_PREFIX/(null)
|
2002-02-20 03:10:54 +00:00
|
|
|
programs: /usr/libexec/<OBJFORMAT>/:STANDARD_EXEC_PREFIX:MD_EXEC_PREFIX
|
1999-12-22 05:00:28 +00:00
|
|
|
libraries: MD_EXEC_PREFIX:MD_STARTFILE_PREFIX:STANDARD_STARTFILE_PREFIX
|
2002-02-20 03:10:54 +00:00
|
|
|
*/
|
2002-05-10 08:54:50 +00:00
|
|
|
#undef TOOLDIR_BASE_PREFIX /* Old?? This is not documented. */
|
2002-05-16 15:22:58 +00:00
|
|
|
#undef STANDARD_BINDIR_PREFIX /* We don't need one for now. */
|
2002-05-10 08:54:50 +00:00
|
|
|
#define STANDARD_EXEC_PREFIX PREFIX"/libexec/"
|
2002-05-16 15:22:58 +00:00
|
|
|
#undef MD_EXEC_PREFIX /* We don't want one. */
|
2002-06-06 03:47:02 +00:00
|
|
|
#define FBSD_DATA_PREFIX PREFIX"/libdata/gcc/"
|
1999-04-28 18:48:08 +00:00
|
|
|
|
|
|
|
/* Under FreeBSD, the normal location of the various *crt*.o files is the
|
|
|
|
/usr/lib directory. */
|
|
|
|
|
1999-12-29 14:42:46 +00:00
|
|
|
#define STANDARD_STARTFILE_PREFIX PREFIX"/lib/"
|
2002-02-20 19:41:54 +00:00
|
|
|
#ifdef CROSS_COMPILE
|
|
|
|
#define CROSS_STARTFILE_PREFIX PREFIX"/lib/"
|
|
|
|
#endif
|
2002-04-04 19:36:33 +00:00
|
|
|
#undef MD_STARTFILE_PREFIX /* We don't need one for now. */
|
1999-04-28 18:48:08 +00:00
|
|
|
|
2002-02-24 06:05:22 +00:00
|
|
|
/* For the native system compiler, we actually build libgcc in a profiled
|
|
|
|
version. So we should use it with -pg. */
|
2002-03-02 00:54:17 +00:00
|
|
|
#define LIBGCC_SPEC "%{!pg: -lgcc} %{pg: -lgcc_p}"
|
2002-02-24 06:05:22 +00:00
|
|
|
|
1999-04-28 18:48:08 +00:00
|
|
|
/* FreeBSD is 4.4BSD derived */
|
|
|
|
#define bsd4_4
|
2001-12-18 03:19:11 +00:00
|
|
|
|
|
|
|
/* 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
|