Skip to contentSkip to conversation

mtd-utils: also check for static libuuid

PATCH Applied Rosen Penev 2 participants 2 messages Sep 23, 2024 – Sep 25, 2024 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd-utils: also check for static libuuid

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.

---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
configure.ac +2 -1
index cf3a959..6222356 100644
@@ -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
Signature · 6 lines
2.46.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/