diff options
Diffstat (limited to 'check')
-rw-r--r-- | check/Makefile.am | 3 | ||||
-rwxr-xr-x | check/check-sysroot | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/check/Makefile.am b/check/Makefile.am index 4386209..87264b5 100644 --- a/check/Makefile.am +++ b/check/Makefile.am @@ -15,7 +15,8 @@ TESTS = \ check-cmd-options \ check-version \ check-print-options \ - check-path + check-path \ + check-sysroot EXTRA_DIST = \ $(TESTS) \ diff --git a/check/check-sysroot b/check/check-sysroot new file mode 100755 index 0000000..b14a025 --- /dev/null +++ b/check/check-sysroot @@ -0,0 +1,23 @@ +#! /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 |