public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] mtd-utils: also check for static libuuid
@ 2024-09-23 20:45 Rosen Penev
  2024-09-25 10:54 ` David Oberhollenzer
  0 siblings, 1 reply; 2+ messages in thread
From: Rosen Penev @ 2024-09-23 20:45 UTC (permalink / raw)
  To: linux-mtd

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(-)

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
-- 
2.46.1


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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-25 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-23 20:45 [PATCH] mtd-utils: also check for static libuuid Rosen Penev
2024-09-25 10:54 ` David Oberhollenzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox