2005-07-14 13:06:38 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
. ${srcdir}/common
|
|
|
|
|
|
2012-11-28 09:51:01 -08:00
|
|
|
RESULT="-lsimple"
|
|
|
|
|
if [ "$list_indirect_deps" = no ]; then
|
|
|
|
|
run_test --libs simple
|
2009-03-30 22:03:38 +02:00
|
|
|
fi
|
2012-11-28 09:51:01 -08:00
|
|
|
|
|
|
|
|
RESULT="-lsimple -lm"
|
|
|
|
|
if [ "$list_indirect_deps" = yes ]; then
|
|
|
|
|
run_test --libs simple
|
|
|
|
|
fi
|
|
|
|
|
run_test --libs --static simple
|
2005-07-14 13:06:38 +00:00
|
|
|
|
2010-05-27 22:23:40 +02:00
|
|
|
RESULT=""
|
2012-09-29 08:50:57 -07:00
|
|
|
run_test --libs fields-blank
|
2012-10-01 22:33:38 -07:00
|
|
|
|
2012-11-19 10:41:20 -08:00
|
|
|
RESULT="-L/other/lib -Wl,--as-needed -lother"
|
2012-10-01 22:33:38 -07:00
|
|
|
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
|
2012-10-16 20:44:16 -07:00
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
2012-11-19 10:41:20 -08:00
|
|
|
RESULT="-L/other/lib -Wl,--as-needed"
|
2012-10-16 20:44:16 -07:00
|
|
|
run_test --libs-only-L --libs-only-other other
|
|
|
|
|
run_test --libs-only-other --libs-only-L other
|
|
|
|
|
|
2012-11-19 10:41:20 -08:00
|
|
|
RESULT="-L/other/lib -Wl,--as-needed -lother"
|
2012-10-16 20:44:16 -07:00
|
|
|
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
|