150472Speter/* $FreeBSD: stable/11/gnu/usr.bin/cc/cc_tools/freebsd-native.h 314573 2017-03-03 00:39:29Z emaste $ */ 246157Sobrien 346157Sobrien/* FREEBSD_NATIVE is defined when gcc is integrated into the FreeBSD 446157Sobrien source tree so it can be configured appropriately without using 546157Sobrien the GNU configure/build mechanism. */ 646157Sobrien 773306Sobrien#define FREEBSD_NATIVE 1 873306Sobrien 996340Sobrien/* Fake out gcc/config/freebsd<version>.h. */ 10256298Sdim#define FBSD_MAJOR 11 11314573Semaste#define FBSD_CC_VER 1100003 /* form like __FreeBSD_version */ 1296340Sobrien 1354990Sobrien#undef SYSTEM_INCLUDE_DIR /* We don't need one for now. */ 1454990Sobrien#undef TOOL_INCLUDE_DIR /* We don't need one for now. */ 1554990Sobrien#undef LOCAL_INCLUDE_DIR /* We don't wish to support one. */ 1654990Sobrien 1746157Sobrien/* Look for the include files in the system-defined places. */ 18207995Sobrien#define GPLUSPLUS_INCLUDE_DIR PREFIX"/include/c++/"GCCVER 19207995Sobrien#define GPLUSPLUS_BACKWARD_INCLUDE_DIR PREFIX"/include/c++/"GCCVER"/backward" 20207995Sobrien#define GCC_INCLUDE_DIR PREFIX"/include/gcc/"GCCVER 21258445Sandreast#ifdef CROSS_DIRECTORY_STRUCTURE 2255220Sobrien#define CROSS_INCLUDE_DIR PREFIX"/include" 2390993Sobrien#else 2490993Sobrien#define STANDARD_INCLUDE_DIR PREFIX"/include" 2555220Sobrien#endif 2646157Sobrien 2746157Sobrien/* Under FreeBSD, the normal location of the compiler back ends is the 2854990Sobrien /usr/libexec directory. 2946157Sobrien 3054990Sobrien ``cc --print-search-dirs'' gives: 31169718Skan install: STANDARD_EXEC_PREFIX/ 32169718Skan programs: STANDARD_EXEC_PREFIX:MD_EXEC_PREFIX 33169718Skan libraries: STANDARD_STARTFILE_PREFIX 3490951Sobrien*/ 3596736Sru#undef STANDARD_BINDIR_PREFIX /* We don't need one for now. */ 3696340Sobrien#define STANDARD_EXEC_PREFIX PREFIX"/libexec/" 37132751Skan#define STANDARD_LIBEXEC_PREFIX PREFIX"/libexec/" 38132751Skan#define TOOLDIR_BASE_PREFIX PREFIX 3996736Sru#undef MD_EXEC_PREFIX /* We don't want one. */ 4097913Sobrien#define FBSD_DATA_PREFIX PREFIX"/libdata/gcc/" 4146157Sobrien 4246157Sobrien/* Under FreeBSD, the normal location of the various *crt*.o files is the 4346157Sobrien /usr/lib directory. */ 4446157Sobrien 45132751Skan#undef MD_STARTFILE_PREFIX /* We don't need one for now. */ 4655220Sobrien#define STANDARD_STARTFILE_PREFIX PREFIX"/lib/" 47132751Skan#define STARTFILE_PREFIX_SPEC PREFIX"/lib/" 4846157Sobrien 49169718Skan#if 0 50116320Speter#define LIBGCC_SPEC "%{shared: -lgcc_pic} \ 51116320Speter %{!shared: %{!pg: -lgcc} %{pg: -lgcc_p}}" 52169718Skan#endif 5398054Sobrien#define LIBSTDCXX_PROFILE "-lstdc++_p" 5498054Sobrien#define MATH_LIBRARY_PROFILE "-lm_p" 5598056Sobrien#define FORTRAN_LIBRARY_PROFILE "-lg2c_p" 5691190Sobrien 57169718Skan#define LIBGCC_SPEC "-lgcc" 58169718Skan/* For the native system compiler, we actually build libgcc in a profiled 59169718Skan version. So we should use it with -pg. */ 60169718Skan#define LIBGCC_STATIC_LIB_SPEC "%{pg: -lgcc_p;:-lgcc}" 61169718Skan#define LIBGCC_EH_STATIC_LIB_SPEC "%{pg: -lgcc_eh_p;:-lgcc_eh}" 62169718Skan 6346157Sobrien/* FreeBSD is 4.4BSD derived */ 6446157Sobrien#define bsd4_4 65