diff options
author | Holger Freyther <zecke@selfish.org> | 2008-02-17 21:36:24 +0000 |
---|---|---|
committer | Holger Freyther <zecke@selfish.org> | 2008-02-17 21:36:24 +0000 |
commit | 813b702be534bd460e69c32ac4671e8be7573204 (patch) | |
tree | 6c4ac9b6ed36368f9016e7ce093fe7f2a4e98b0d /packages/gcc/gcc-4.2.1 | |
parent | 45bb225e01108328a5006ef0b8238e94737d4f66 (diff) |
packages/gcc/gcc-4.2.1/zecke-no-host-includes.patch: Document this patch and explain why it is a hack
Diffstat (limited to 'packages/gcc/gcc-4.2.1')
-rw-r--r-- | packages/gcc/gcc-4.2.1/zecke-no-host-includes.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/gcc/gcc-4.2.1/zecke-no-host-includes.patch b/packages/gcc/gcc-4.2.1/zecke-no-host-includes.patch index 6afb10d6ef..0b401defd8 100644 --- a/packages/gcc/gcc-4.2.1/zecke-no-host-includes.patch +++ b/packages/gcc/gcc-4.2.1/zecke-no-host-includes.patch @@ -1,3 +1,16 @@ +upstream: n/a +status: evil hack +comment: Including host system headers when cross compiling can lead to weird +issues, in the best case compile issues, in the worst case crashes. E.g. if you +are building a uclibc system, you certainly do not want glibc headers or OSX libc +headers to be picked up. To avoid that this patch is penetalizing certain common +Linux/Unix host directories. + +To send the patch upstream the evil paths should be specified by +a setting or command-line options. Until now this is a evil hack assuming +certain host system paths. E.g. /usr/local/ and other common paths should be +added. + Index: gcc-4.0.2/gcc/c-incpath.c =================================================================== --- gcc-4.0.2.orig/gcc/c-incpath.c 2005-01-23 16:05:27.000000000 +0100 |