[oe-commits] Phil Blundell : gcc: respect ${layout_includedir}
GIT User account
git at amethyst.openembedded.net
Sat Oct 18 16:29:33 UTC 2008
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 2a6217b27df13e2501459d6cd19436bae82967fd
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2a6217b27df13e2501459d6cd19436bae82967fd
Author: Phil Blundell <philb at gnu.org>
Date: Sat Oct 18 17:28:20 2008 +0100
gcc: respect ${layout_includedir}
---
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 795911d..e88cee5 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
}
-
More information about the Openembedded-commits
mailing list