Initial import from FreeBSD RELENG_4:
[dragonfly.git] / gnu / usr.bin / cc / cc_tools / freebsd-native.h
1 /* $FreeBSD: src/gnu/usr.bin/cc/cc_tools/freebsd-native.h,v 1.5.2.9 2002/05/01 20:04:37 obrien Exp $ */
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 #undef SYSTEM_INCLUDE_DIR               /* We don't need one for now. */
10 #undef GCC_INCLUDE_DIR                  /* We don't need one for now. */
11 #undef TOOL_INCLUDE_DIR                 /* We don't need one for now. */
12 #undef LOCAL_INCLUDE_DIR                /* We don't wish to support one. */
13
14 /* Look for the include files in the system-defined places.  */
15 #define GPLUSPLUS_INCLUDE_DIR           PREFIX"/include/g++"
16 #define GCC_INCLUDE_DIR                 PREFIX"/include"
17 #ifdef CROSS_COMPILE
18 #define CROSS_INCLUDE_DIR               PREFIX"/include"
19 #else
20 #define STANDARD_INCLUDE_DIR            PREFIX"/include"
21 #endif
22
23 /* Under FreeBSD, the normal location of the compiler back ends is the
24    /usr/libexec directory.
25
26    ``cc --print-search-dirs'' gives:
27    install: STANDARD_EXEC_PREFIX/(null)
28    programs: /usr/libexec/<OBJFORMAT>/:STANDARD_EXEC_PREFIX:MD_EXEC_PREFIX
29    libraries: MD_EXEC_PREFIX:MD_STARTFILE_PREFIX:STANDARD_STARTFILE_PREFIX
30 */
31
32 #undef  TOOLDIR_BASE_PREFIX             /* Old??  This is not documented. */
33 #define STANDARD_EXEC_PREFIX            PREFIX"/libexec/"
34 #undef  MD_EXEC_PREFIX                  /* We don't want one. */
35
36 /* Under FreeBSD, the normal location of the various *crt*.o files is the
37    /usr/lib directory.  */
38
39 #define STANDARD_STARTFILE_PREFIX       PREFIX"/lib/"
40 #ifdef CROSS_COMPILE
41 #define CROSS_STARTFILE_PREFIX          PREFIX"/lib/"
42 #endif
43 #undef  MD_STARTFILE_PREFIX             /* We don't need one for now. */
44
45 /* For the native system compiler, we actually build libgcc in a profiled
46    version.  So we should use it with -pg.  */
47 #define LIBGCC_SPEC             "%{!pg: -lgcc} %{pg: -lgcc_p}"
48 #define LIBSTDCXX_PROFILE       "-lstdc++_p"
49 #define MATH_LIBRARY_PROFILE    "-lm_p"
50
51 /* FreeBSD is 4.4BSD derived */
52 #define bsd4_4