summaryrefslogtreecommitdiff
path: root/sofort/ccenv/ccenv.sh
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-01-02 22:30:36 +0000
committermidipix <writeonce@midipix.org>2020-01-02 22:43:06 +0000
commit22927a6c6c9cd398ed104c50fffb4c1cea988928 (patch)
tree4017928c068d3e9db30ad5ac7a27c28ca3612576 /sofort/ccenv/ccenv.sh
parent54797a9f79744ed80a0360ebeb9ab8a0434159ae (diff)
downloadslibtool-22927a6c6c9cd398ed104c50fffb4c1cea988928.tar.bz2
slibtool-22927a6c6c9cd398ed104c50fffb4c1cea988928.tar.xz
build system: ccenv_common_init(): use vars directly.
Diffstat (limited to 'sofort/ccenv/ccenv.sh')
-rw-r--r--sofort/ccenv/ccenv.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh
index df353df..2fe29e6 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -1213,7 +1213,15 @@ ccenv_common_init()
if [ $ccenv_cfgtype = 'host' ]; then
ccenv_tflags=
- ccenv_cflags=$(make -s -f "$mb_pwd/Makefile.tmp" .display-cflags)
+ ccenv_cflags=
+
+ ccenv_cflags="$ccenv_cflags $mb_cflags_debug $mb_cflags_config"
+ ccenv_cflags="$ccenv_cflags $mb_cflags_sysroot $mb_cflags_common"
+ ccenv_cflags="$ccenv_cflags $mb_cflags_cmdline $mb_cflags"
+ ccenv_cflags="$ccenv_cflags $mb_cflags_path $mb_cflags_os"
+ ccenv_cflags="$ccenv_cflags $mb_cflags_site $mb_cflags_strict"
+ ccenv_cflags="$ccenv_cflags $mb_cflags_last $mb_cflags_once"
+
ccenv_cc="$mb_user_cc"
ccenv_cpp="$mb_user_cpp"
ccenv_cxx="$mb_user_cxx"
@@ -1260,6 +1268,8 @@ ccenv_set_toolchain_variables()
ccenv_output_defs
ccenv_clean_up
+
+ eval ccenv_${ccenv_cfgtype}_cc="$ccenv_cc"
}
ccenv_set_host_variables()