diff options
author | midipix <writeonce@midipix.org> | 2021-06-09 05:59:30 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-09 06:02:37 +0000 |
commit | 7a059fbf8900e1fb6145368653eaf75158b399e4 (patch) | |
tree | c951b5e3f5684a6ef860c21bdd1fcf8c809a9f95 /sofort | |
parent | 088b53a2166a7edb670ab017e19c3c670911bb85 (diff) | |
download | ntux-7a059fbf8900e1fb6145368653eaf75158b399e4.tar.bz2 ntux-7a059fbf8900e1fb6145368653eaf75158b399e4.tar.xz |
build system: cfgtest_library_presence(): added freestanding code snippet.
Diffstat (limited to 'sofort')
-rw-r--r-- | sofort/cfgtest/cfgtest.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sofort/cfgtest/cfgtest.sh b/sofort/cfgtest/cfgtest.sh index 1e3d707..4a50e8f 100644 --- a/sofort/cfgtest/cfgtest.sh +++ b/sofort/cfgtest/cfgtest.sh @@ -596,7 +596,15 @@ cfgtest_library_presence() cfgtest_prolog 'lib module' '(see config.log)' fi - cfgtest_code_snippet='int main(void){return 0;}' + if [ "$mb_cfgtest_environment" = 'freestanding' ]; then + if [ -z "ccenv_cc_underscore" ]; then + cfgtest_code_snippet='int start(void){return 0;}' + else + cfgtest_code_snippet='int _start(void){return 0;}' + fi + else + cfgtest_code_snippet='int main(void){return 0;}' + fi cfgtest_common_init 'lib' |