[oe-commits] org.oe.dev packages/gcc/gcc-4.2.1/zecke-no-host-includes.patch: Document this patch and explain why it is a hack
freyther commit
openembedded-commits at lists.openembedded.org
Sun Feb 17 22:07:23 UTC 2008
packages/gcc/gcc-4.2.1/zecke-no-host-includes.patch: Document this patch and explain why it is a hack
Author: freyther at openembedded.org
Branch: org.openembedded.dev
Revision: 473156ab40b5356be2ac58a4dacafcf1e2c29f49
ViewMTN: http://monotone.openembedded.org/revision/info/473156ab40b5356be2ac58a4dacafcf1e2c29f49
Files:
1
packages/gcc/gcc-4.2.1/zecke-no-host-includes.patch
Diffs:
#
# mt diff -r9193ea513da9843986314c61fc2b7ff888bb2865 -r473156ab40b5356be2ac58a4dacafcf1e2c29f49
#
#
#
# patch "packages/gcc/gcc-4.2.1/zecke-no-host-includes.patch"
# from [6e9d8445c31e423d84214b7b5560ebd144b1fb51]
# to [0078a4cb532f5bbf3ac56c8b4ccd752667e2ebb7]
#
============================================================
--- packages/gcc/gcc-4.2.1/zecke-no-host-includes.patch 6e9d8445c31e423d84214b7b5560ebd144b1fb51
+++ packages/gcc/gcc-4.2.1/zecke-no-host-includes.patch 0078a4cb532f5bbf3ac56c8b4ccd752667e2ebb7
@@ -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
More information about the Openembedded-commits
mailing list