summaryrefslogtreecommitdiffhomepage
path: root/sofort
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-31 04:18:52 -0500
committermidipix <writeonce@midipix.org>2018-12-31 04:27:04 -0500
commit6a3932ba73ffce61ca1195967b9dae6aca4bd327 (patch)
tree05907cd8c714db28524c27d2c25f216d347f7b08 /sofort
parent33fd1617a42549edb9a066db5c3bd7859d4f9080 (diff)
downloadw32lib-6a3932ba73ffce61ca1195967b9dae6aca4bd327.tar.bz2
w32lib-6a3932ba73ffce61ca1195967b9dae6aca4bd327.tar.xz
build system: ccenv: also update configure's (mb_-prefixed) variables.
Diffstat (limited to 'sofort')
-rw-r--r--sofort/ccenv/ccenv.sh23
1 files changed, 22 insertions, 1 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh
index 354dd90..31b7dd5 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -934,7 +934,28 @@ ccenv_output_defs()
| sed -e 's/[ \t]*$//g' \
> "$ccenv_mk"
- return 0
+ if [ "$ccenv_cfgtype" = 'host' ]; then
+ for __var in $ccenv_vars; do
+ ccenv_src_var=$__var
+ ccenv_dst_var=mb_${__var#*ccenv_}
+ ccenv_var_expr='${'$ccenv_src_var':-}'
+ eval $ccenv_dst_var=$ccenv_var_expr
+
+ done
+
+ mb_host=$ccenv_host
+ mb_cchost=$ccenv_cchost
+ else
+ for __var in $ccenv_vars; do
+ ccenv_src_var=$__var
+ ccenv_dst_var=mb_native_${__var#*ccenv_}
+ ccenv_var_expr='${'$ccenv_src_var':-}'
+ eval "$ccenv_dst_var=$ccenv_var_expr"
+ done
+
+ mb_native_host=$ccenv_host
+ mb_native_cchost=$ccenv_cchost
+ fi
}
ccenv_clean_up()