summaryrefslogtreecommitdiff
path: root/sofort/cfgtest
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-11 16:16:56 +0000
committermidipix <writeonce@midipix.org>2021-04-11 16:22:20 +0000
commit609d1f4d62a0ab18b513bf8697406602eaa82ad9 (patch)
tree398d76812ac209dac9fa3dc651df3d177394e788 /sofort/cfgtest
parentf3436737a6492c61e45e7597ef7d09be3f49117e (diff)
downloadsbpython3-609d1f4d62a0ab18b513bf8697406602eaa82ad9.tar.bz2
sbpython3-609d1f4d62a0ab18b513bf8697406602eaa82ad9.tar.xz
build system: cfgtest.sh: use LIBDIR or NATIVE_LDFLAGS according to test type.
Diffstat (limited to 'sofort/cfgtest')
-rw-r--r--sofort/cfgtest/cfgtest.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/sofort/cfgtest/cfgtest.sh b/sofort/cfgtest/cfgtest.sh
index 45a324e..7d18a62 100644
--- a/sofort/cfgtest/cfgtest.sh
+++ b/sofort/cfgtest/cfgtest.sh
@@ -493,7 +493,11 @@ cfgtest_library_presence()
cfgtest_cmd=$(printf '%s -o a.out -xc - %s' \
"$mb_cfgtest_cc" "$mb_cfgtest_cflags")
- cfgtest_cmd="$cfgtest_cmd -L${mb_libdir} $cfgtest_libs"
+ if [ "$mb_cfgtest_cfgtype" = 'native' ]; then
+ cfgtest_cmd="$cfgtest_cmd ${mb_native_ldflags} $cfgtest_libs"
+ else
+ cfgtest_cmd="$cfgtest_cmd -L${mb_libdir} $cfgtest_libs"
+ fi
printf '%s' "$cfgtest_code_snippet" \
| $(printf '%s' "$cfgtest_cmd") \