diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2010-09-11 15:13:18 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2010-09-11 15:13:18 +0000 |
commit | 4fb68818c2fc8dfc1f8974426c45e15cfccb95af (patch) | |
tree | 84eb5e4cd5260d833b84a275a915d8854cf9f524 /gnu/gcc | |
parent | 8758b0d5adb90c75055438f413221111db17a8d9 (diff) |
Setup sane INCLUDE_DEFAULTS when cross compiling.
ok drahn@
Diffstat (limited to 'gnu/gcc')
-rw-r--r-- | gnu/gcc/gcc/config/openbsd.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/gcc/gcc/config/openbsd.h b/gnu/gcc/gcc/config/openbsd.h index c46e7fb5ea5..6276e53b088 100644 --- a/gnu/gcc/gcc/config/openbsd.h +++ b/gnu/gcc/gcc/config/openbsd.h @@ -53,6 +53,16 @@ along with GCC; see the file COPYING. If not see /* The compiler is configured with ONLY the gcc/g++ standard headers. */ #undef INCLUDE_DEFAULTS +#ifdef CROSS_COMPILE +#define INCLUDE_DEFAULTS \ + { \ + { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 }, \ + { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1 }, \ + { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1 }, \ + { GPLUSPLUS_INCLUDE_DIR "/..", STANDARD_INCLUDE_COMPONENT, 0, 0 }, \ + { 0, 0, 0, 0 } \ + } +#else #define INCLUDE_DEFAULTS \ { \ { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 }, \ @@ -61,6 +71,7 @@ along with GCC; see the file COPYING. If not see { STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT, 0, 0 }, \ { 0, 0, 0, 0 } \ } +#endif /* Under OpenBSD, the normal location of the various *crt*.o files is the /usr/lib directory. */ |