1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#! /bin/sh
set -e
. ${srcdir}/common
RESULT="-lsimple"
if [ "$list_indirect_deps" = no ]; then
run_test --libs simple
fi
RESULT="-lsimple -lm"
if [ "$list_indirect_deps" = yes ]; then
run_test --libs simple
fi
run_test --libs --static simple
RESULT=""
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
|