From e143539d30fd18afb3ba6d3c6e50a260d4219895 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 23 Sep 2024 12:01:40 +0200 Subject: [PATCH] autotools: add Libs.private to uuid.pc Addresses: https://github.com/util-linux/util-linux/issues/3210 Signed-off-by: Karel Zak (cherry picked from commit 81ea117e0396274808a77d40bf11af44ea047285) --- Makefile.am | 1 + libuuid/uuid.pc.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 0662effe00..8204bc070c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -183,6 +183,7 @@ edit_cmd = sed \ -e 's|@usrlib_execdir[@]|$(usrlib_execdir)|g' \ -e 's|@usrbin_execdir[@]|$(usrbin_execdir)|g' \ -e 's|@usrsbin_execdir[@]|$(usrsbin_execdir)|g' \ + -e 's|@SOCKET_LIBS[@]|$(SOCKET_LIBS)|g' \ -e 's|@VERSION[@]|$(VERSION)|g' \ -e 's|@ADJTIME_PATH[@]|$(ADJTIME_PATH)|g' \ -e 's|@LIBUUID_VERSION[@]|$(LIBUUID_VERSION)|g' \ diff --git a/libuuid/uuid.pc.in b/libuuid/uuid.pc.in index 875de19bc2..51929fe80d 100644 --- a/libuuid/uuid.pc.in +++ b/libuuid/uuid.pc.in @@ -6,6 +6,6 @@ includedir=@includedir@ Name: uuid Description: Universally unique id library Version: @LIBUUID_VERSION@ -Requires: Cflags: -I${includedir}/uuid +Libs.private: @SOCKET_LIBS@ -lpthread Libs: -L${libdir} -luuid -- 2.47.2