summaryrefslogtreecommitdiff
path: root/sofort
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-01-04 14:25:15 +0000
committermidipix <writeonce@midipix.org>2020-01-04 14:27:43 +0000
commit03b8d41ad4fb0a4c5f8f29d47a21e62e137553d2 (patch)
treec99f27893f196b7db01008418ee66ec2ea2d630e /sofort
parentd933f1c7ec36b5dd7fc7e2bf90261e41a09f5883 (diff)
downloadperk-03b8d41ad4fb0a4c5f8f29d47a21e62e137553d2.tar.bz2
perk-03b8d41ad4fb0a4c5f8f29d47a21e62e137553d2.tar.xz
build system: ccenv_{set_cc|dso_verify}(): support deferred command expansion.
Diffstat (limited to 'sofort')
-rw-r--r--sofort/ccenv/ccenv.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh
index ef7a957..7903b26 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -429,7 +429,7 @@ ccenv_set_cc()
ccenv_cmd="$ccenv_cc --target=$ccenv_host -E -xc -"
if [ -z "$mb_user_cc" ]; then
- $ccenv_cmd < /dev/null > /dev/null \
+ $(printf %s "$ccenv_cmd") < /dev/null > /dev/null \
2>"$ccenv_tmp" || true
ccenv_errors=$(cat "$ccenv_tmp")
@@ -1206,7 +1206,7 @@ ccenv_dso_verify()
rm -f a.out
- printf '%s' "$ccenv_str" | $ccenv_cmd \
+ printf '%s' "$ccenv_str" | $(printf %s "$ccenv_cmd") \
> /dev/null 2>&3 \
|| mb_disable_shared=yes