From d87a854416dff38aa61ddb5c244675fe823fb2e0 Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 31 2018 09:27:03 +0000 Subject: build system: ccenv: also update configure's (mb_-prefixed) variables. --- 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()