diff options
author | midipix <writeonce@midipix.org> | 2021-04-11 16:16:56 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-04-11 16:22:27 +0000 |
commit | 01d7d7e8caee6b79b3c8626c51b6f7ab3c96666f (patch) | |
tree | ae73023438a98f4b916b3c2b4c9353651f39b1b8 | |
parent | 4b565cad08112bed69e9e1bc5f9e230266c018d8 (diff) | |
download | sofort-01d7d7e8caee6b79b3c8626c51b6f7ab3c96666f.tar.bz2 sofort-01d7d7e8caee6b79b3c8626c51b6f7ab3c96666f.tar.xz |
build system: cfgtest.sh: use LIBDIR or NATIVE_LDFLAGS according to test type.
-rw-r--r-- | sofort/cfgtest/cfgtest.sh | 6 |
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") \ |