[oe] [PATCH 2/2] gcc-configure-target.inc: Filter out --with-sysroot
Khem Raj
raj.khem at gmail.com
Tue Oct 19 19:13:09 UTC 2010
* For target gcc we dont need to specify --with-sysroot
even with libtool 2.4
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
recipes/gcc/gcc-configure-target.inc | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/recipes/gcc/gcc-configure-target.inc b/recipes/gcc/gcc-configure-target.inc
index 03d7a6b..4c9ef8b 100644
--- a/recipes/gcc/gcc-configure-target.inc
+++ b/recipes/gcc/gcc-configure-target.inc
@@ -3,4 +3,10 @@ require gcc-configure-common.inc
EXTRA_OECONF_PATHS = " \
--with-local-prefix=${prefix}/local \
--with-gxx-include-dir=${includedir}/c++/${BINV} \
- --with-build-sysroot=${STAGING_DIR_HOST}"
+ --with-build-sysroot=${STAGING_DIR_HOST} \
+ "
+
+python __anonymous () {
+ cfg = oe_filter_out('^--with-sysroot$', bb.data.getVar('CONFIGUREOPTS', d, 1) or "", d)
+ bb.data.setVar('CONFIGUREOPTS', cfg, d)
+}
--
1.7.1
More information about the Openembedded-devel
mailing list