summaryrefslogtreecommitdiffhomepage
path: root/sofort/ccenv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-05-22 10:18:52 +0000
committermidipix <writeonce@midipix.org>2021-05-22 10:18:52 +0000
commitbdb8181b86db15721e16f6846b4345a499eb7f4f (patch)
treed3f0304b0b95086b8d6f5378a72d7950bf7ed661 /sofort/ccenv
parent2330076d389021ea4eddf44efb70ffeb8d404ba4 (diff)
downloadslibtool-bdb8181b86db15721e16f6846b4345a499eb7f4f.tar.bz2
slibtool-bdb8181b86db15721e16f6846b4345a499eb7f4f.tar.xz
build system: ccenv: ccenv_set_cc(): handle quotes in native $ccenv_cflags.
Diffstat (limited to 'sofort/ccenv')
-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 62caa96..efe19d7 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -478,7 +478,7 @@ ccenv_set_cc()
fi
if [ -z "$ccenv_host" ]; then
- ccenv_host=$($ccenv_cc $(printf '%s' "$ccenv_cflags") -dumpmachine 2>&3)
+ ccenv_host=$(eval $ccenv_cc $(printf '%s' "$ccenv_cflags") -dumpmachine 2>&3)
ccenv_cchost=$ccenv_host
else
ccenv_tmp=$(mktemp ./tmp_XXXXXXXXXXXXXXXX)
@@ -501,7 +501,7 @@ ccenv_set_cc()
rm -f "$ccenv_tmp"
unset ccenv_tmp
- ccenv_cchost=$($ccenv_cc $(printf '%s' "$ccenv_cflags") -dumpmachine 2>&3)
+ ccenv_cchost=$(eval $ccenv_cc $(printf '%s' "$ccenv_cflags") -dumpmachine 2>&3)
fi
if [ "$ccenv_cchost" != "$ccenv_host" ]; then