diff options
author | midipix <writeonce@midipix.org> | 2021-05-22 10:18:52 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-05-22 10:20:17 +0000 |
commit | 0757b8e5c7f460ff7d2abf8131c4ae90d6a79d7e (patch) | |
tree | 6f600026983f4c3a9fdf3acc096072eda0d6785e /sofort | |
parent | 0c091e63bfc590e5d90d93fffcb4e187c95ac16c (diff) | |
download | w32lib-0757b8e5c7f460ff7d2abf8131c4ae90d6a79d7e.tar.bz2 w32lib-0757b8e5c7f460ff7d2abf8131c4ae90d6a79d7e.tar.xz |
build system: ccenv: ccenv_set_cc(): handle quotes in native $ccenv_cflags.
Diffstat (limited to 'sofort')
-rw-r--r-- | sofort/ccenv/ccenv.sh | 4 |
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 |