diff --git a/tests/lib1/private-libs-duplication.pc b/tests/lib1/private-libs-duplication.pc new file mode 100644 index 0000000..f8a4741 --- /dev/null +++ b/tests/lib1/private-libs-duplication.pc @@ -0,0 +1,6 @@ +Name: private-libs-duplication +Version: 1.0 +Requires: foo +Libs: -lprivate +Libs.private: -lfoo + diff --git a/tests/run.sh.in b/tests/run.sh.in index b0cf04f..2066eef 100644 --- a/tests/run.sh.in +++ b/tests/run.sh.in @@ -116,6 +116,8 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --static --libs argv-parse-2" \ '-pthread ' run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --static --cflags baz" \ '-fPIC' '-I/usr/include/foo' '-DFOO_STATIC' +run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --static --libs-only-l private-libs-duplication" \ + '-lprivate-libs-duplication -lfoo' # 4) tests for parser bugs run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs dos-lineendings" \