summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2024-03-11 20:29:07 -0400
committerMike Gilbert <floppym@gentoo.org>2024-03-11 20:33:42 -0400
commitfa0af68d68dd186767157c5b464d68a5f331efcc (patch)
treeb0323e0ce992045f482ca0323b6e4a996a40e9a6 /eclass
parentsci-visualization/xd3d: filter LTO, no-SA (diff)
downloadgentoo-fa0af68d68dd186767157c5b464d68a5f331efcc.tar.gz
gentoo-fa0af68d68dd186767157c5b464d68a5f331efcc.tar.bz2
gentoo-fa0af68d68dd186767157c5b464d68a5f331efcc.zip
toolchain.eclass: handle quoted whitespace in EXTRA_ECONF
Code taken from econf in Portage. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass3
1 files changed, 2 insertions, 1 deletions
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'