diff options
author | Phil Blundell <philb@gnu.org> | 2008-10-18 17:28:20 +0100 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2008-10-18 17:28:20 +0100 |
commit | 2a6217b27df13e2501459d6cd19436bae82967fd (patch) | |
tree | 8b70a42ba4a6b434a7c4b78d1e7cee773a641daf /packages/gcc | |
parent | efacdf15ac8d31f985f80cf0834ccc693e7435ca (diff) |
gcc: respect ${layout_includedir}
Diffstat (limited to 'packages/gcc')
-rw-r--r-- | packages/gcc/gcc-configure-common.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/gcc/gcc-configure-common.inc b/packages/gcc/gcc-configure-common.inc index 795911db74..e88cee5cb2 100644 --- a/packages/gcc/gcc-configure-common.inc +++ b/packages/gcc/gcc-configure-common.inc @@ -75,6 +75,13 @@ do_configure () { export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}" export ARCH_FLAGS_FOR_TARGET="${ARCH_FLAGS_FOR_TARGET}" (cd ${S} && gnu-configize) || die "failure running gnu-configize" + + # splice our idea of where the headers live into gcc's world + echo "NATIVE_SYSTEM_HEADER_DIR = ${layout_includedir}" > ${T}/t-oe + sed 's%^tmake_file=.*$%& ${T}/t-oe%' < ${S}/gcc/Makefile.in >${S}/gcc/Makefile.in.new + mv ${S}/gcc/Makefile.in.new ${S}/gcc/Makefile.in + + echo "#define STANDARD_INCLUDE_DIR \"${layout_includedir}\"" >> ${S}/gcc/defaults.h + oe_runconf } - |