summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-05-27 04:18:40 +0000
committermidipix <writeonce@midipix.org>2021-05-27 04:21:29 +0000
commite4539c0f3d2bc16493ed29d237b3e106d567ba72 (patch)
treecb3887723f35f3478aa10f65b92ef596705753f1
parent2acaac06f327f50c9714d5db89d8aa115826c24e (diff)
downloadpemagine-e4539c0f3d2bc16493ed29d237b3e106d567ba72.tar.bz2
pemagine-e4539c0f3d2bc16493ed29d237b3e106d567ba72.tar.xz
build system: configure: cfgtest: do not rely on default word splitting.
-rwxr-xr-xconfigure2
-rw-r--r--sofort/cfgtest/cfgtest.sh8
2 files changed, 5 insertions, 5 deletions
diff --git a/configure b/configure
index 6099868..725cd6f 100755
--- a/configure
+++ b/configure
@@ -874,7 +874,7 @@ config_host()
printf '\n%s' "$mb_cfghost_cc $ccenv_tmpname -o a.out" >&3
- for mb_cfghost_cflag in $mb_cfghost_cflags; do
+ for mb_cfghost_cflag in $(printf '%s' "$mb_cfghost_cflags"); do
printf ' \\\n\t%s' "$mb_cfghost_cflag" >&3
done
diff --git a/sofort/cfgtest/cfgtest.sh b/sofort/cfgtest/cfgtest.sh
index 71f03ec..2d765be 100644
--- a/sofort/cfgtest/cfgtest.sh
+++ b/sofort/cfgtest/cfgtest.sh
@@ -244,17 +244,17 @@ cfgtest_common_init()
# config.log
printf "$cfgtest_fmt" "$mb_cfgtest_cc" >&3
- for cfgtest_cflag in $mb_cfgtest_cflags; do
+ for cfgtest_cflag in $(printf '%s' "$mb_cfgtest_cflags"); do
printf ' \\\n\t%s' "$cfgtest_cflag" >&3
done
if [ "$cfgtest_type" = 'lib' ]; then
- for cfgtest_lib in $cfgtest_libs; do
+ for cfgtest_lib in $(printf '%s' "$cfgtest_libs"); do
printf ' \\\n\t%s' "$cfgtest_lib" >&3
done
elif [ "$cfgtest_type" = 'switch' ]; then
- for cfgtest_switch in $cfgtest_switches; do
+ for cfgtest_switch in $(printf '%s' "$cfgtest_switches"); do
printf ' \\\n\t%s' "$cfgtest_switch" >&3
done
fi
@@ -550,7 +550,7 @@ cfgtest_compiler_switch()
cfgtest_switches=
cfgtest_spc=
- for cfgtest_switch in ${@}; do
+ for cfgtest_switch in $(printf '%s' "${@}"); do
cfgtest_switches="$cfgtest_switches$cfgtest_spc$cfgtest_switch"
cfgtest_spc=' '
done