mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2025-12-26 22:30:03 +01:00
Checks that pkg-config prepends PKG_CONFIG_SYSROOT_DIR to -I and -L when they don't point to system directories.
23 lines
383 B
Bash
Executable file
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
|