gcc47: Restore cross-build capability
[dragonfly.git] / gnu / usr.bin / cc47 / cc_prep / config / dragonfly-native.h
CommitLineData
b450dd39
JM
1#undef PREFIX
2#define PREFIX PREFIX1
3#ifndef PREFIX2
4#define PREFIX2 PREFIX1
5#endif
6
7#define LINK_LIBGCC_SPEC ""
8#define LIBGCC_SPEC \
9"%{static|static-libgcc:-lgcc -lgcc_eh} \
10 %{!static: \
11 %{!static-libgcc: \
12 %{!shared-libgcc:-lgcc --as-needed -lgcc_pic --no-as-needed} \
13 %{shared-libgcc:-lgcc_pic \
14 %{!shared: -lgcc} \
15 } \
16 } \
17 }"
18
19#undef LINK_SPEC
20#define LINK_SPEC DFBSD_LINK_SPEC \
21"%{pg: -L"PREFIX2"/lib/gcc"GCCSHORTVER"/profile \
22 %{!static: -rpath /usr/lib/gcc"GCCSHORTVER"/profile} \
23 } \
24 -L"PREFIX2"/lib/gcc"GCCSHORTVER" \
25 %{!static: -rpath /usr/lib/gcc"GCCSHORTVER"} \
26 %{pg: \
27 %{!nostdlib: \
28 %{!nodefaultlibs: -L"PREFIX2"/lib/profile \
29 %{!static: -rpath /usr/lib/profile} \
30 } \
31 } \
32 }"
33
58700ca7 34#define NATIVE_SYSTEM_HEADER_DIR PREFIX2"/include"
b450dd39
JM
35#define STD_EXEC_PATH PREFIX1"/libexec/gcc"GCCSHORTVER
36#define STANDARD_EXEC_PREFIX STD_EXEC_PATH"/"
37#define STANDARD_LIBEXEC_PREFIX STANDARD_EXEC_PREFIX
38#define STANDARD_BINDIR_PREFIX STANDARD_EXEC_PREFIX
39#define STANDARD_STARTFILE_PREFIX STANDARD_EXEC_PREFIX
40#define STANDARD_STARTFILE_PREFIX_1 ""
41#define STANDARD_STARTFILE_PREFIX_2 ""
42#define MD_EXEC_PREFIX ""
43#define MD_STARTFILE_PREFIX ""
44#define MD_STARTFILE_PREFIX_1 ""
45#define TOOLDIR_BASE_PREFIX "./"
46
47#define STARTFILE_PREFIX_SPEC PREFIX2"/lib/gcc"GCCSHORTVER"/ "PREFIX2"/lib/"
48
49#define GPLUSPLUS_INCLUDE_DIR PREFIX2"/include/c++/"GCCPOINTVER
50#define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT 0
51#undef GPLUSPLUS_TOOL_INCLUDE_DIR
52#define GPLUSPLUS_BACKWARD_INCLUDE_DIR PREFIX2"/include/c++/"GCCPOINTVER"/backward"
53#undef LOCAL_INCLUDE_DIR
54#define GCC_INCLUDE_DIR PREFIX2"/libdata/gcc"GCCSHORTVER
55#undef FIXED_INCLUDE_DIR
56#undef CROSS_INCLUDE_DIR
57#undef TOOL_INCLUDE_DIR