freebsd-native.h revision 68528
1/* $FreeBSD: head/gnu/usr.bin/cc/cc_tools/freebsd-native.h 68528 2000-11-09 15:50:22Z 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#undef SYSTEM_INCLUDE_DIR		/* We don't need one for now. */
8#undef GCC_INCLUDE_DIR			/* We don't need one for now. */
9#undef TOOL_INCLUDE_DIR			/* We don't need one for now. */
10#undef LOCAL_INCLUDE_DIR		/* We don't wish to support one. */
11
12/* Look for the include files in the system-defined places.  */
13#define GPLUSPLUS_INCLUDE_DIR		PREFIX"/include/g++"
14#define GCC_INCLUDE_DIR			PREFIX"/include"
15#ifdef CROSS_COMPILE
16#define CROSS_INCLUDE_DIR		PREFIX"/include"
17#endif
18
19/* Under FreeBSD, the normal location of the compiler back ends is the
20   /usr/libexec directory.
21
22   ``cc --print-search-dirs'' gives:
23   install: STANDARD_EXEC_PREFIX/(null)
24   programs: /usr/libexec/<OBJFORMAT>/:MD_EXEC_PREFIX
25   libraries: MD_EXEC_PREFIX:MD_STARTFILE_PREFIX:STANDARD_STARTFILE_PREFIX
26
27   We really don't need a "STANDARD_EXEC_PREFIX".  However w/o it,
28   "--print-search-dirs" reports "install: /usr/local/lib/gcc-lib/(null)".
29   It is not harmful, but is just plain wrong.  So we define a
30   "STANDARD_EXEC_PREFIX" to not be misleading.  */
31
32#undef STANDARD_EXEC_PREFIX
33#undef TOOLDIR_BASE_PREFIX		/* Old??  This is not documented. */
34#undef MD_EXEC_PREFIX
35
36#define STANDARD_EXEC_PREFIX		PREFIX"/libexec/"
37#define MD_EXEC_PREFIX			PREFIX"/libexec/"
38
39/* Under FreeBSD, the normal location of the various *crt*.o files is the
40   /usr/lib directory.  */
41
42#undef STANDARD_STARTFILE_PREFIX
43#undef MD_STARTFILE_PREFIX		/* We don't need one for now. */
44
45#define STANDARD_STARTFILE_PREFIX	PREFIX"/lib/"
46
47/* FreeBSD is 4.4BSD derived */
48#define bsd4_4
49
50/* Tell gcc to locate libgcc.a for us according to the -m rules.  */
51#undef LIBGCC_SPEC
52#define LIBGCC_SPEC \
53 "%{!shared: \
54    %{!pthread:libgcc.a%s} \
55    %{pthread:libgcc_r.a%s}}"
56