diff options
Diffstat (limited to 'check/check-libs')
-rwxr-xr-x | check/check-libs | 50 |
1 files changed, 42 insertions, 8 deletions
diff --git a/check/check-libs b/check/check-libs index 372314d..767e3fd 100755 --- a/check/check-libs +++ b/check/check-libs @@ -4,14 +4,48 @@ set -e . ${srcdir}/common -ARGS="--libs simple" -if [ "$list_indirect_deps" = "yes" ]; then - RESULT="-lsimple -lm" -else - RESULT="-lsimple" +RESULT="-lsimple" +if [ "$list_indirect_deps" = no ]; then + run_test --libs simple fi -run_test -ARGS="--libs fields-blank" +RESULT="-lsimple -lm" +if [ "$list_indirect_deps" = yes ]; then + run_test --libs simple +fi +run_test --libs --static simple + RESULT="" -run_test +run_test --libs fields-blank + +RESULT="-L/other/lib -Wl,--as-needed -lother" +run_test --libs other + +RESULT="-lother" +run_test --libs-only-l other + +RESULT="-L/other/lib" +run_test --libs-only-L other + +RESULT="-Wl,--as-needed" +run_test --libs-only-other other + +# Try various mixed combinations +RESULT="-L/other/lib -lother" +run_test --libs-only-l --libs-only-L other +run_test --libs-only-L --libs-only-l other + +RESULT="-Wl,--as-needed -lother" +run_test --libs-only-l --libs-only-other other +run_test --libs-only-other --libs-only-l other + +RESULT="-L/other/lib -Wl,--as-needed" +run_test --libs-only-L --libs-only-other other +run_test --libs-only-other --libs-only-L other + +RESULT="-L/other/lib -Wl,--as-needed -lother" +run_test --libs-only-l --libs-only-L --libs-only-other other +run_test --libs --libs-only-l --libs-only-L --libs-only-other other +run_test --libs --libs-only-l other +run_test --libs --libs-only-L other +run_test --libs --libs-only-other other |