diff mbox series

mtd-utils: also check for static libuuid

Message ID 20240923204502.823673-1-rosenp@gmail.com
State New
Headers show
Series mtd-utils: also check for static libuuid | expand

Commit Message

Rosen Penev Sept. 23, 2024, 8:45 p.m. UTC
PKG_CHECK_MODULES confusingly does not check to see if a static version
of the library is available.

Actually with older glibc, it might fail as lpthread needs to be passed
to linker flags (Libs.private in pc files) which can only be obtained if
--static is passed to pkg-config.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

David Oberhollenzer Sept. 25, 2024, 10:54 a.m. UTC | #1
Applied to mtd-utils.git master.

Thanks,

David
diff mbox series

Patch

diff --git a/configure.ac b/configure.ac
index cf3a959..6222356 100644
--- a/configure.ac
+++ b/configure.ac
@@ -145,7 +145,8 @@  AS_IF([test "x$with_zlib" != "xno"], [
 ], [])
 
 if test "x$need_uuid" = "xyes"; then
-	PKG_CHECK_MODULES(UUID, [uuid], [], [uuid_missing="yes"])
+	PKG_CHECK_MODULES(UUID, [uuid], [],
+			  [PKG_CHECK_MODULES_STATIC(UUID, [uuid], [], [uuid_missing="yes"])])
 fi
 
 if test "x$need_clock_gettime" = "xyes"; then