media-libs/nas: workaround imake argument splitting

IMAKECPP normally doesn't support arguments but was given
the same basic support as IMAKEINCLUDE which doesn't handle
multiple spaces or tab, and an empty get_abi_CFLAGS would
result in two spaces without an argument.

So use an array and word splitting to normalize.

Closes: https://bugs.gentoo.org/884203
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2022-12-04 00:26:58 -05:00
parent b4a50a640c
commit 3b414dbc1a

View File

@@ -53,8 +53,10 @@ multilib_src_configure() {
pushd config || die
econf
popd || die
local cpp=($(get_abi_CHOST ${DEFAULT_ABI})-gcc $(get_abi_CFLAGS) -E) #884203
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
IMAKECPP="${IMAKECPP:-$(get_abi_CHOST ${DEFAULT_ABI})-gcc $(get_abi_CFLAGS) -E}" \
IMAKECPP="${IMAKECPP:-${cpp[*]}}" \
xmkmf -a || die
}