mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2025-12-26 22:30:03 +01:00
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.
27 lines
429 B
Bash
Executable file
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
|