Skip to content

Commit 4fd6117

Browse files
nehebrobimarko
authored andcommitted
tools/util-linux: fix libuuid linking
The pkgconfig file that autotools uses is wrong for static libraries. meson does the right thing but for static libraries, .private entries need to move to non .private. Fixes compilation with at least mtd-utils. Signed-off-by: Rosen Penev <[email protected]> Link: openwrt/openwrt#19597 Signed-off-by: Robert Marko <[email protected]>
1 parent b0650c5 commit 4fd6117

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
From 15bc69131a1e08019096251ea848104e57d99a12 Mon Sep 17 00:00:00 2001
2+
From: Rosen Penev <[email protected]>
3+
Date: Sun, 27 Jul 2025 11:55:56 -0700
4+
Subject: [PATCH] move libpthread to Libs
5+
6+
OpewWrt uses static host libraries and as such dependant libraries must
7+
be moved to public Libs. meson handles this automatically but Autotools
8+
does not.
9+
10+
Signed-off-by: Rosen Penev <[email protected]>
11+
---
12+
libuuid/uuid.pc.in | 3 +--
13+
1 file changed, 1 insertion(+), 2 deletions(-)
14+
15+
diff --git a/libuuid/uuid.pc.in b/libuuid/uuid.pc.in
16+
index 51929fe80d72..9fe908b61f12 100644
17+
--- a/libuuid/uuid.pc.in
18+
+++ b/libuuid/uuid.pc.in
19+
@@ -7,5 +7,4 @@ Name: uuid
20+
Description: Universally unique id library
21+
Version: @LIBUUID_VERSION@
22+
Cflags: -I${includedir}/uuid
23+
-Libs.private: @SOCKET_LIBS@ -lpthread
24+
-Libs: -L${libdir} -luuid
25+
+Libs: -L${libdir} -luuid @SOCKET_LIBS@ -lpthread
26+
--
27+
2.50.1
28+

0 commit comments

Comments
 (0)