diff --git a/tests/sysroot.sh b/tests/sysroot.sh index 7f45270..ec2e0bb 100755 --- a/tests/sysroot.sh +++ b/tests/sysroot.sh @@ -4,7 +4,17 @@ tests_init \ cflags \ - variable + variable \ + do_not_eat_slash \ + +do_not_eat_slash_body() +{ + export PKG_CONFIG_PATH="${selfdir}/lib1" + export PKG_CONFIG_SYSROOT_DIR="/" + atf_check \ + -o inline:"-fPIC -I/test/include/foo \n" \ + pkgconf --cflags baz +} cflags_body() {