pkg-config/check/check-libs
Dan Nicholson 9a54c588a5 check: Test all variants of --cflags and --libs
Make sure that the --*-only-* variants of --cflags and --libs do the
right thing. This should probably be extended to cover a chain of
packages to get the ordering right, but this is good for now.
2012-10-03 05:33:31 -07:00

27 lines
429 B
Bash
Executable file

#! /bin/sh
set -e
. ${srcdir}/common
if [ "$list_indirect_deps" = "yes" ]; then
RESULT="-lsimple -lm"
else
RESULT="-lsimple"
fi
run_test --libs simple
RESULT=""
run_test --libs fields-blank
RESULT="-Wl,--as-needed -L/other/lib -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