From: Rosen Penev Date: Mon, 23 Sep 2024 20:45:02 +0000 (-0700) Subject: mtd-utils: also check for static libuuid X-Git-Tag: v2.2.1~11 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=de1386406f5130876be25d9fbee685fb9f0b3020;p=mtd-utils.git 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. Signed-off-by: Rosen Penev Signed-off-by: David Oberhollenzer --- 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