]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools: fix multi-word arguments for EXTRA_OECONF
authorChristopher Larson <kergoth@gmail.com>
Mon, 10 Oct 2011 21:13:05 +0000 (14:13 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Jan 2012 16:27:07 +0000 (16:27 +0000)
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}"'

(From OE-Core rev: 38a394e7ffedccfabda085c97add8944718943c2)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/autotools.bbclass

index c05ab4b0a0c6e2b77bde377ad0db62f39ef72c17..5b5b8b65de3074813c43986a63a323e193361e8c 100644 (file)
@@ -68,10 +68,8 @@ CONFIGUREOPTS = " --build=${BUILD_SYS} \
 
 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