summaryrefslogtreecommitdiff
path: root/sofort
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-09 05:59:30 +0000
committermidipix <writeonce@midipix.org>2021-06-09 06:02:36 +0000
commit760a9f28e377dc8dd1e68cc7b4d0fd91b36dc247 (patch)
tree183e31e7806148f9712b6126edfe9f082e96f0a1 /sofort
parentbf04f9cf93bb427f89bd59a4cb74fa2a7176ee92 (diff)
downloadapimagic-760a9f28e377dc8dd1e68cc7b4d0fd91b36dc247.tar.bz2
apimagic-760a9f28e377dc8dd1e68cc7b4d0fd91b36dc247.tar.xz
build system: cfgtest_library_presence(): added freestanding code snippet.
Diffstat (limited to 'sofort')
-rw-r--r--sofort/cfgtest/cfgtest.sh10
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'