summaryrefslogtreecommitdiffhomepage
path: root/sofort/cfgtest
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-05-26 07:31:41 +0000
committermidipix <writeonce@midipix.org>2021-05-26 14:37:29 +0000
commit38d03d6744e99884f47978dfe291d3f598293f11 (patch)
tree81ffbd536ae12e98e2285c90a302f5cad28783e8 /sofort/cfgtest
parenta16b01ab96d7cffdd7d6e5ea831b5f4062a89dbf (diff)
downloadpemagine-38d03d6744e99884f47978dfe291d3f598293f11.tar.bz2
pemagine-38d03d6744e99884f47978dfe291d3f598293f11.tar.xz
build system: cfgtest framework: support test invocation from within ccenv.sh.
Diffstat (limited to 'sofort/cfgtest')
-rw-r--r--sofort/cfgtest/cfgtest.sh22
1 files changed, 15 insertions, 7 deletions
diff --git a/sofort/cfgtest/cfgtest.sh b/sofort/cfgtest/cfgtest.sh
index 736abdd..0b2e9c9 100644
--- a/sofort/cfgtest/cfgtest.sh
+++ b/sofort/cfgtest/cfgtest.sh
@@ -38,7 +38,13 @@ cfgtest_host_section()
{
mb_cfgtest_cc="$ccenv_host_cc"
mb_cfgtest_cfgtype='host'
- mb_cfgtest_cflags=$(${mb_make} -n -f "$mb_pwd/Makefile.tmp" .cflags-host)
+
+ mb_cfgtest_cflags=$(${mb_make} -n -f "$mb_pwd/Makefile.tmp" \
+ OS_DSO_EXRULES=default \
+ OS_SONAME=symlink \
+ OS_ARCHIVE_EXT='.a' \
+ .cflags-host)
+
mb_cfgtest_cflags="${mb_cfgtest_cflags#*: }"
mb_cfgtest_ldflags="$mb_ldflags_cmdline"
@@ -49,20 +55,22 @@ cfgtest_host_section()
mb_cfgtest_ldflags="$mb_cfgtest_ldflags $mb_ldflags_sysroot"
mb_cfgtest_ldflags="$mb_cfgtest_ldflags $mb_ldflags_path"
mb_cfgtest_ldflags="$mb_cfgtest_ldflags $mb_ldflags_last"
-
- cfgtest_comment 'host-specific tests'
}
cfgtest_native_section()
{
- mb_cfgtest_cc="$mb_native_cc"
+ mb_cfgtest_cc="$ccenv_native_cc"
mb_cfgtest_cfgtype='native'
- mb_cfgtest_cflags=$(${mb_make} -n -f "$mb_pwd/Makefile.tmp" .cflags-native)
+
+ mb_cfgtest_cflags=$(${mb_make} -n -f "$mb_pwd/Makefile.tmp" \
+ OS_DSO_EXRULES=default \
+ OS_SONAME=symlink \
+ OS_ARCHIVE_EXT='.a' \
+ .cflags-native)
+
mb_cfgtest_cflags="${mb_cfgtest_cflags#*: }"
mb_cfgtest_ldflags="$mb_native_ldflags"
-
- cfgtest_comment 'native system tests'
}