From 490bd6f98a2addcade55028ea60c36cce07e21e4 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 6 May 2024 15:34:37 +0200 Subject: [PATCH] Add Libs.private to autoconf libpsl.pc 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. --- libpsl.pc.in | 1 + 1 file changed, 1 insertion(+) diff --git a/libpsl.pc.in b/libpsl.pc.in index dbc6acd0..8cc165dd 100644 --- a/libpsl.pc.in +++ b/libpsl.pc.in @@ -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}