diff options
author | midipix <writeonce@midipix.org> | 2018-12-31 04:18:52 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-31 04:27:02 -0500 |
commit | 0d6a7c9e6de86aea84d6c5b3f5c5933ce912a4bf (patch) | |
tree | daa631a966fca22849cb123b7e5b7d594738fe40 /sofort | |
parent | f64fbb86df58a58d0076e0f29248583137b71b4f (diff) | |
download | ntux-0d6a7c9e6de86aea84d6c5b3f5c5933ce912a4bf.tar.bz2 ntux-0d6a7c9e6de86aea84d6c5b3f5c5933ce912a4bf.tar.xz |
build system: ccenv: also update configure's (mb_-prefixed) variables.
Diffstat (limited to 'sofort')
-rw-r--r-- | sofort/ccenv/ccenv.sh | 23 |
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() |