pkg-config/check/check-sysroot
Dan Nicholson 4426d487eb check: Test sysroot support
Checks that pkg-config prepends PKG_CONFIG_SYSROOT_DIR to -I and -L when
they don't point to system directories.
2012-10-03 05:33:31 -07:00

23 lines
383 B
Bash
Executable file

#! /bin/sh
set -e
. ${srcdir}/common
export PKG_CONFIG_SYSROOT_DIR=/sysroot
RESULT=""
run_test --cflags simple
if [ "$list_indirect_deps" = "yes" ]; then
RESULT="-lsimple -lm"
else
RESULT="-lsimple"
fi
run_test --libs simple
RESULT="-I/sysroot/public-dep/include"
run_test --cflags public-dep
RESULT="-L/sysroot/public-dep/lib -lpublic-dep"
run_test --libs public-dep