From e6df379f32a460eebf27782a9683e69705a9feeb Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 30 Dec 2016 19:44:50 -0600 Subject: [PATCH] tests: add a test for --static ordering bug reported to freedesktop pkg-config that was actually in pkgconf This was fixed a long time ago, but for completeness sake. (https://bugs.freedesktop.org/show_bug.cgi?id=85085) --- tests/basic.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/basic.sh b/tests/basic.sh index 3195b1d..426db40 100755 --- a/tests/basic.sh +++ b/tests/basic.sh @@ -28,6 +28,7 @@ tests_init \ libs_circular2 \ libs_circular_directpc \ libs_static \ + libs_static_ordering \ pkg_config_path \ nolibs \ nocflags \ @@ -235,6 +236,14 @@ libs_static_body() pkgconf --libs static-archive-libs } +libs_static_ordering_body() +{ + export PKG_CONFIG_PATH="${selfdir}/lib1" + atf_check \ + -o inline:"-L/test/lib -lbar -lfoo \n" \ + pkgconf --libs foo bar +} + pkg_config_path_body() { export PKG_CONFIG_PATH="${selfdir}/lib1${PATH_SEP}${selfdir}/lib2"