summaryrefslogtreecommitdiffhomepage
path: root/sofort/ccenv
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-19 09:01:33 +0000
committermidipix <writeonce@midipix.org>2021-04-19 09:20:41 +0000
commit1d13d436e5bc3a6b42b4a1c3504c9413e46d72e2 (patch)
tree105de706a59f97bfffea608d4a57db56e7d5cc0f /sofort/ccenv
parentc845787a3a6a77f984cc44f10cb6679a1b6b932a (diff)
downloadntux-1d13d436e5bc3a6b42b4a1c3504c9413e46d72e2.tar.bz2
ntux-1d13d436e5bc3a6b42b4a1c3504c9413e46d72e2.tar.xz
build system: ccenv: ccenv_set_cc{_bits}(): handle quotes in $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 9ed5b99..62caa96 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -463,7 +463,7 @@ ccenv_set_cc()
ccenv_errors=
if [ "$ccenv_cfgtype" = 'native' ]; 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
ccenv_tool_epilog "$ccenv_cc"
return 0
@@ -665,7 +665,7 @@ ccenv_set_cc_bits()
"$ccenv_internal_guess")
printf '%s' "$ccenv_internal_str" \
- | $ccenv_cc -S -xc - -o - \
+ | eval $ccenv_cc -S -xc - -o - \
$(printf '%s' "$ccenv_cflags") \
> /dev/null 2>&3 \
&& ccenv_internal_size=$ccenv_internal_guess