summaryrefslogtreecommitdiff
path: root/sofort/ccenv/ccenv.sh
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-10-19 23:42:29 +0000
committermidipix <writeonce@midipix.org>2019-10-19 23:44:59 +0000
commit58d71300dfd9b649fa0e0249eda8a27404853cea (patch)
treeeef3b09e2acec3eed1d7f7229b7f89aa6ef8dcc6 /sofort/ccenv/ccenv.sh
parentb8d15a26c5814af257d1231a6f6323d708a4801f (diff)
downloadapimagic-58d71300dfd9b649fa0e0249eda8a27404853cea.tar.bz2
apimagic-58d71300dfd9b649fa0e0249eda8a27404853cea.tar.xz
build system: ccenv.sh: accommodate shells that lack (default) word splitting.
Diffstat (limited to 'sofort/ccenv/ccenv.sh')
-rw-r--r--sofort/ccenv/ccenv.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh
index dbfb12b..d6f48f2 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -299,7 +299,7 @@ ccenv_set_cc()
ccenv_cc_cmd="$ccenv_cc"
if [ "$ccenv_cfgtype" = 'native' ]; then
- ccenv_host=$($ccenv_cc $ccenv_cflags -dumpmachine 2>/dev/null)
+ ccenv_host=$($ccenv_cc $(printf '%s' "$ccenv_cflags") -dumpmachine 2>/dev/null)
ccenv_cchost=$ccenv_host
return 0
fi
@@ -313,7 +313,7 @@ ccenv_set_cc()
fi
if [ -z "$ccenv_host" ]; then
- ccenv_host=$($ccenv_cc $ccenv_cflags -dumpmachine 2>/dev/null)
+ ccenv_host=$($ccenv_cc $(printf '%s' "$ccenv_cflags") -dumpmachine 2>/dev/null)
ccenv_cchost=$ccenv_host
else
ccenv_tmp=$(mktemp ./tmp_XXXXXXXXXXXXXXXX)
@@ -334,7 +334,7 @@ ccenv_set_cc()
rm -f "$ccenv_tmp"
unset ccenv_tmp
- ccenv_cchost=$($ccenv_cc $ccenv_cflags -dumpmachine 2>/dev/null)
+ ccenv_cchost=$($ccenv_cc $(printf '%s' "$ccenv_cflags") -dumpmachine 2>/dev/null)
fi
if [ "$ccenv_cchost" != "$ccenv_host" ]; then