freebsd-native.h revision 151857
1/* $FreeBSD: head/gnu/usr.bin/cc/cc_tools/freebsd-native.h 151857 2005-10-29 09:13:31Z obrien $ */ 2 3/* FREEBSD_NATIVE is defined when gcc is integrated into the FreeBSD 4 source tree so it can be configured appropriately without using 5 the GNU configure/build mechanism. */ 6 7#define FREEBSD_NATIVE 1 8 9/* Fake out gcc/config/freebsd<version>.h. */ 10#define FBSD_MAJOR 7 11 12#undef SYSTEM_INCLUDE_DIR /* We don't need one for now. */ 13#undef TOOL_INCLUDE_DIR /* We don't need one for now. */ 14#undef LOCAL_INCLUDE_DIR /* We don't wish to support one. */ 15 16/* Look for the include files in the system-defined places. */ 17#define GPLUSPLUS_INCLUDE_DIR PREFIX"/include/c++/3.4" 18#define GPLUSPLUS_BACKWARD_INCLUDE_DIR PREFIX"/include/c++/3.4/backward" 19#define GCC_INCLUDE_DIR PREFIX"/include" 20#ifdef CROSS_COMPILE 21#define CROSS_INCLUDE_DIR PREFIX"/include" 22#else 23#define STANDARD_INCLUDE_DIR PREFIX"/include" 24#endif 25 26/* Under FreeBSD, the normal location of the compiler back ends is the 27 /usr/libexec directory. 28 29 ``cc --print-search-dirs'' gives: 30 install: STANDARD_EXEC_PREFIX/(null) 31 programs: /usr/libexec/<OBJFORMAT>/:STANDARD_EXEC_PREFIX:MD_EXEC_PREFIX 32 libraries: MD_EXEC_PREFIX:MD_STARTFILE_PREFIX:STANDARD_STARTFILE_PREFIX 33*/ 34#undef STANDARD_BINDIR_PREFIX /* We don't need one for now. */ 35#define STANDARD_EXEC_PREFIX PREFIX"/libexec/" 36#define STANDARD_LIBEXEC_PREFIX PREFIX"/libexec/" 37#define TOOLDIR_BASE_PREFIX PREFIX 38#undef MD_EXEC_PREFIX /* We don't want one. */ 39#define FBSD_DATA_PREFIX PREFIX"/libdata/gcc/" 40 41/* Under FreeBSD, the normal location of the various *crt*.o files is the 42 /usr/lib directory. */ 43 44#undef MD_STARTFILE_PREFIX /* We don't need one for now. */ 45#define STANDARD_STARTFILE_PREFIX PREFIX"/lib/" 46#define STARTFILE_PREFIX_SPEC PREFIX"/lib/" 47 48/* For the native system compiler, we actually build libgcc in a profiled 49 version. So we should use it with -pg. */ 50#define LIBGCC_SPEC "%{shared: -lgcc_pic} \ 51 %{!shared: %{!pg: -lgcc} %{pg: -lgcc_p}}" 52#define LIBSTDCXX_PROFILE "-lstdc++_p" 53#define MATH_LIBRARY_PROFILE "-lm_p" 54#define FORTRAN_LIBRARY_PROFILE "-lg2c_p" 55 56/* FreeBSD is 4.4BSD derived */ 57#define bsd4_4 58 59/* And now they want to replace ctype.h.... grr... [stupid, IMHO] */ 60#define xxxISDIGIT isdigit 61#define xxxISGRAPH isgraph 62#define xxxISLOWER islower 63#define xxxISSPACE isspace 64#define xxxTOUPPER toupper 65