commit:     fa0af68d68dd186767157c5b464d68a5f331efcc
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 12 00:29:07 2024 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Tue Mar 12 00:33:42 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa0af68d

toolchain.eclass: handle quoted whitespace in EXTRA_ECONF

Code taken from econf in Portage.

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 eclass/toolchain.eclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 1cc7000c2377..2acfad8162ac 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1347,7 +1347,8 @@ toolchain_src_configure() {
        # killing the 32bit builds which want /usr/lib.
        export ac_cv_have_x='have_x=yes ac_x_includes= ac_x_libraries='
 
-       confgcc+=( "$@" ${EXTRA_ECONF} )
+       eval "local -a EXTRA_ECONF=(${EXTRA_ECONF})"
+       confgcc+=( "$@" "${EXTRA_ECONF[@]}" )
 
        if ! is_crosscompile && ! tc-is-cross-compiler && [[ -n 
${BUILD_CONFIG_TARGETS} ]] ; then
                # e.g. ./configure --with-build-config='bootstrap-lto 
bootstrap-cet'

Reply via email to