Skip to content

Commit

Permalink
tools: util-linux: fix static libuuid pkgconf
Browse files Browse the repository at this point in the history
Fixes uuid.pc usage on hosts with an older glibc.

Signed-off-by: Rosen Penev <[email protected]>
Link: openwrt/openwrt#16480
Link: openwrt/openwrt#16480
Link: openwrt/openwrt#16480
Signed-off-by: Robert Marko <[email protected]>
  • Loading branch information
neheb authored and robimarko committed Sep 26, 2024
1 parent 774badd commit 9567dbe
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tools/util-linux/patches/110-pkgconfig-static.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From 81ea117e0396274808a77d40bf11af44ea047285 Mon Sep 17 00:00:00 2001
From: Rosen Penev <[email protected]>
Date: Mon, 23 Sep 2024 12:01:40 +0200
Subject: [PATCH] pkgconfig: adjust for static libraries

OpenWrt builds only static libuuid for tools. Adjust the pkgconfig file
accordingly.

Addresses: https://github.com/util-linux/util-linux/issues/3210
Signed-off-by: Rosen Penev <[email protected]>
---
libuuid/uuid.pc.in | 2 +-
1 file changed, 1 insertions(+), 2 deletions(-)

--- a/libuuid/uuid.pc.in
+++ b/libuuid/uuid.pc.in
@@ -6,6 +6,5 @@ includedir=@includedir@
Name: uuid
Description: Universally unique id library
Version: @LIBUUID_VERSION@
-Requires:
Cflags: -I${includedir}/uuid
-Libs: -L${libdir} -luuid
+Libs: -L${libdir} -luuid -lpthread

0 comments on commit 9567dbe

Please sign in to comment.