Skip to content

Commit

Permalink
Add Libs.private to autoconf libpsl.pc
Browse files Browse the repository at this point in the history
Static libraries don't include dependency information, so when using
pkg-config to find out how to link with a static library, the .pc file
for that library has to specify what other libraries to link.
Libs.private is like Libs, except it's only used when static linking.
This fixes linking against a static libpsl using pkg-config.

The Meson-generated libpsl.pc just includes all of its dependent
libraries in Libs, so doesn't require any additional fix.
  • Loading branch information
alyssais authored and rockdaboot committed May 9, 2024
1 parent 61f677a commit 490bd6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libpsl.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ Description: Public Suffix List C library.
Version: @PACKAGE_VERSION@
URL: @PACKAGE_URL@
Libs: -L${libdir} -lpsl
Libs.private: @LIBS@
Cflags: -I${includedir}

0 comments on commit 490bd6f

Please sign in to comment.