[oe-commits] Christopher Larson : autotools: fix multi-word arguments for EXTRA_OECONF

git at git.openembedded.org git at git.openembedded.org
Fri Oct 14 23:46:13 UTC 2011


Module: openembedded-core.git
Branch: master-next
Commit: 38a394e7ffedccfabda085c97add8944718943c2
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=38a394e7ffedccfabda085c97add8944718943c2

Author: Christopher Larson <kergoth at gmail.com>
Date:   Mon Oct 10 14:13:05 2011 -0700

autotools: fix multi-word arguments for EXTRA_OECONF

This is needed to better support things like the following (with a
multi-word BUILD_CC):

    EXTRA_OECONF += '"ac_cv_prog_CC_FOR_BUILD=${BUILD_CC}"'

Signed-off-by: Christopher Larson <kergoth at gmail.com>

---

 meta/classes/autotools.bbclass |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 0413322..451c7fc 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -71,10 +71,8 @@ CONFIGUREOPT_DEPTRACK = "--disable-dependency-tracking"
 
 oe_runconf () {
 	if [ -x ${S}/configure ] ; then
-		cfgcmd="${S}/configure \
-		${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
-		bbnote "Running $cfgcmd..."
-		$cfgcmd || bbfatal "oe_runconf failed" 
+		bbnote "Running ${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
+		${S}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed"
 	else
 		bbfatal "no configure script found"
 	fi





More information about the Openembedded-commits mailing list