Commit 2374f409defb380d0c5c07f28b9c166ef8bdc742

Guillem Jover 2021-02-09T05:56:49

build: Add a Libs.private field to pkg-config file We need to list all internal libraries there so that we can statically link.

1
2
3
4
5
6
7
8
9
10
diff --git a/src/libbsd.pc.in b/src/libbsd.pc.in
index d141fea..2c0ac17 100644
--- a/src/libbsd.pc.in
+++ b/src/libbsd.pc.in
@@ -8,4 +8,5 @@ Description: Utility functions from BSD systems
 Version: @VERSION@
 URL: https://libbsd.freedesktop.org/
 Libs: -L${libdir} -lbsd
+Libs.private: @LIBBSD_LIBS@
 Cflags: -I${includedir}