]> www.infradead.org Git - mtd-utils.git/commitdiff
mtd-utils: also check for static libuuid
authorRosen Penev <rosenp@gmail.com>
Mon, 23 Sep 2024 20:45:02 +0000 (13:45 -0700)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Wed, 25 Sep 2024 07:08:41 +0000 (09:08 +0200)
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>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
configure.ac

index cf3a959e119442f53f72620549f3b03f7d17fdac..6222356ecb97489d2c12144d669705606e6731d1 100644 (file)
@@ -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