diff options
Diffstat (limited to 'cross/i386-netbsdpe/patches/patch-cq')
-rw-r--r-- | cross/i386-netbsdpe/patches/patch-cq | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/cross/i386-netbsdpe/patches/patch-cq b/cross/i386-netbsdpe/patches/patch-cq new file mode 100644 index 00000000000..8a0e78b4acc --- /dev/null +++ b/cross/i386-netbsdpe/patches/patch-cq @@ -0,0 +1,44 @@ +$NetBSD: patch-cq,v 1.1 2001/01/30 03:09:01 minoura Exp $ + +--- gcc/cppinit.c.orig Tue Oct 12 15:31:11 1999 ++++ gcc/cppinit.c +@@ -129,16 +129,23 @@ + /* Pick up GNU C++ specific include files. */ + { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 }, + #ifdef CROSS_COMPILE ++#if 0 + /* This is the dir for fixincludes. Put it just before + the files that we fix. */ + { GCC_INCLUDE_DIR, "GCC", 0, 0 }, +- /* For cross-compilation, this dir name is generated +- automatically in Makefile.in. */ +- { CROSS_INCLUDE_DIR, "GCC", 0, 0 }, ++#endif + #ifdef TOOL_INCLUDE_DIR + /* This is another place that the target system's headers might be. */ + { TOOL_INCLUDE_DIR, "BINUTILS", 0, 1 }, + #endif ++ /* For cross-compilation, this dir name is generated ++ automatically in Makefile.in. */ ++ { CROSS_INCLUDE_DIR, "GCC", 0, 0 }, ++#ifdef LOCAL_INCLUDE_DIR ++ /* This should be /usr/local/include and should come before ++ the fixincludes-fixed header files. */ ++ { LOCAL_INCLUDE_DIR, 0, 0, 1 }, ++#endif + #else /* not CROSS_COMPILE */ + #ifdef LOCAL_INCLUDE_DIR + /* This should be /usr/local/include and should come before +@@ -157,11 +164,11 @@ + #ifdef SYSTEM_INCLUDE_DIR + { SYSTEM_INCLUDE_DIR, 0, 0, 0 }, + #endif ++#endif /* not CROSS_COMPILE */ + #ifndef STANDARD_INCLUDE_COMPONENT + #define STANDARD_INCLUDE_COMPONENT 0 + #endif + { STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT, 0, 0 }, +-#endif /* not CROSS_COMPILE */ + { 0, 0, 0, 0 } + }; + #endif /* no INCLUDE_DEFAULTS */ |