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