forked from ariadne/pkgconf
testsuite: add test for static archives in Libs:
parent
a2323ee923
commit
2936927008
|
@ -0,0 +1,10 @@
|
||||||
|
prefix=/usr/local
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${prefix}/lib
|
||||||
|
includedir=${prefix}/include
|
||||||
|
|
||||||
|
Name: static-archive-libs
|
||||||
|
Description: A testing pkg-config file
|
||||||
|
Version: 1.2.3
|
||||||
|
Libs: /libfoo.a -pthread
|
||||||
|
Cflags: -I${includedir}/foo
|
|
@ -90,6 +90,8 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs circular-1" \
|
||||||
'-lcircular-2 -lcircular-3 -lcircular-1'
|
'-lcircular-2 -lcircular-3 -lcircular-1'
|
||||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs circular-3" \
|
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs circular-3" \
|
||||||
'-lcircular-1 -lcircular-2 -lcircular-3'
|
'-lcircular-1 -lcircular-2 -lcircular-3'
|
||||||
|
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs static-archive-libs" \
|
||||||
|
'/libfoo.a -pthread'
|
||||||
|
|
||||||
# 2) tests for PKG_CONFIG_PATH order
|
# 2) tests for PKG_CONFIG_PATH order
|
||||||
run_test "PKG_CONFIG_PATH='${selfdir}/lib1${PATH_SEP}${selfdir}/lib2' ${1} --libs foo" \
|
run_test "PKG_CONFIG_PATH='${selfdir}/lib1${PATH_SEP}${selfdir}/lib2' ${1} --libs foo" \
|
||||||
|
|
Loading…
Reference in New Issue