From 005c273483be8e39da31cf7e811b5905df00fd2d Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 11 Apr 2021 16:16:56 +0000 Subject: build system: cfgtest.sh: use LIBDIR or NATIVE_LDFLAGS according to test type. --- sofort/cfgtest/cfgtest.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sofort/cfgtest') 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") \ -- cgit v1.2.3