summaryrefslogtreecommitdiffhomepage
path: root/sofort/cfgtest
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-01-06 08:39:53 +0000
committermidipix <writeonce@midipix.org>2020-01-06 08:49:47 +0000
commit407a13476677439da1750ab1fdb55f70538ee050 (patch)
treea8413a01137383e137cc2f2049e0f5861d002038 /sofort/cfgtest
parenta67bb4fff0053b18269fbf246930cda2675c9bf2 (diff)
downloadsofort-407a13476677439da1750ab1fdb55f70538ee050.tar.bz2
sofort-407a13476677439da1750ab1fdb55f70538ee050.tar.xz
build system: cfgtest_{host|native}_section(): fully expand all cflags.
Diffstat (limited to 'sofort/cfgtest')
-rw-r--r--sofort/cfgtest/cfgtest.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/sofort/cfgtest/cfgtest.sh b/sofort/cfgtest/cfgtest.sh
index 861e5dc..09ad82c 100644
--- a/sofort/cfgtest/cfgtest.sh
+++ b/sofort/cfgtest/cfgtest.sh
@@ -34,16 +34,9 @@ cfgtest_comment()
cfgtest_host_section()
{
- mb_cfgtest_cflags=
- mb_cfgtest_cflags="$mb_cfgtest_cflags $mb_cflags_debug $mb_cflags_config"
- mb_cfgtest_cflags="$mb_cfgtest_cflags $mb_cflags_sysroot $mb_cflags_common"
- mb_cfgtest_cflags="$mb_cfgtest_cflags $mb_cflags_cmdline $mb_cflags"
- mb_cfgtest_cflags="$mb_cfgtest_cflags $mb_cflags_path $mb_cflags_os"
- mb_cfgtest_cflags="$mb_cfgtest_cflags $mb_cflags_site $mb_cflags_strict"
- mb_cfgtest_cflags="$mb_cfgtest_cflags $mb_cflags_last $mb_cflags_once"
-
mb_cfgtest_cc="$ccenv_host_cc"
mb_cfgtest_cfgtype='host'
+ mb_cfgtest_cflags=$(make -s -f "$mb_pwd/Makefile.tmp" .cflags-host)
cfgtest_comment 'host-specific tests'
}
@@ -52,8 +45,8 @@ cfgtest_host_section()
cfgtest_native_section()
{
mb_cfgtest_cc="$mb_native_cc"
- mb_cfgtest_cflags="$mb_native_cflags"
mb_cfgtest_cfgtype='native'
+ mb_cfgtest_cflags=$(make -s -f "$mb_pwd/Makefile.tmp" .cflags-native)
cfgtest_comment 'native system tests'
}