1 /* $FreeBSD: src/gnu/usr.bin/cc/cc_tools/freebsd-native.h,v 1.28.8.1 2009/04/15 03:14:26 kensmith Exp $ */
2 /* $OpenBSD: openbsd-native.h,v 1.3 2011/03/06 20:18:22 guenther Exp $ */
3 
4 /* OPENBSD_NATIVE is defined when gcc is integrated into the OpenBSD
5    source tree so it can be configured appropriately without using
6    the GNU configure/build mechanism. */
7 
8 #define OPENBSD_NATIVE 1
9 
10 #undef SYSTEM_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	GPLUSPLUS_BACKWARD_INCLUDE_DIR	PREFIX"/include/g++/backward"
17 #define GCC_INCLUDE_DIR			PREFIX"/include"
18 #ifdef CROSS_COMPILE
19 #define CROSS_INCLUDE_DIR		PREFIX"/include"
20 #else
21 #define STANDARD_INCLUDE_DIR		PREFIX"/include"
22 #endif
23 
24 /* Under OpenBSD, the normal location of the compiler back ends is the
25    /usr/libexec directory.
26 
27    ``cc --print-search-dirs'' gives:
28    install: STANDARD_EXEC_PREFIX/
29    programs: STANDARD_EXEC_PREFIX:MD_EXEC_PREFIX
30    libraries: STANDARD_STARTFILE_PREFIX
31 */
32 #undef	STANDARD_BINDIR_PREFIX		/* We don't need one for now. */
33 #define	STANDARD_EXEC_PREFIX		PREFIX"/lib/gcc-lib/"
34 #define	STANDARD_LIBEXEC_PREFIX		PREFIX"/lib/gcc-lib/"
35 #define TOOLDIR_BASE_PREFIX		PREFIX"/"
36 #undef	MD_EXEC_PREFIX			/* We don't want one. */
37 #define	FBSD_DATA_PREFIX		PREFIX"/libdata/gcc/"
38 
39 /* Under OpenBSD, the normal location of the various *crt*.o files is the
40    /usr/lib directory.  */
41 
42 #undef  MD_STARTFILE_PREFIX		/* We don't need one for now. */
43 #define STANDARD_STARTFILE_PREFIX	PREFIX"/lib/"
44 #define STARTFILE_PREFIX_SPEC		PREFIX"/lib/"
45 #ifdef CROSS_COMPILE
46 #define STANDARD_BINDIR_PREFIX		PREFIX"/"DEFAULT_TARGET_MACHINE "/bin/"
47 #else
48 #define STANDARD_BINDIR_PREFIX		PREFIX"/bin/"
49 #endif
50 
51 /* OpenBSD is 4.4BSD derived */
52 #define bsd4_4
53