From: Theodore Ts'o Date: Sat, 14 Jun 2025 20:47:26 +0000 (-0400) Subject: Use the fuse3 libraries reported by pkg-config X-Git-Tag: v1.47.3-rc3~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6282b7516ab11529d1b46ddebc6a6643d2bbaecd;p=thirdparty%2Fe2fsprogs.git Use the fuse3 libraries reported by pkg-config It used to be that PKG_CHECK_MODULES would set foo_LDFLAGS; not it just sets the foo_LIBS with the required -L and -l options. Fix this up for fuse3 support. This fixes support on MacOS using MacFuse. Signed-off-by: Theodore Ts'o --- diff --git a/configure b/configure index 0ac202d8..e53d937f 100755 --- a/configure +++ b/configure @@ -14553,8 +14553,8 @@ fi if test "$FUSE_LIB" = "-lfuse3" then FUSE_USE_VERSION=35 - CFLAGS="$CFLAGS $fuse3_CFLAGS" - LDFLAGS="$LDFLAGS $fuse3_LDFLAGS" + CFLAGS="$fuse3_CFLAGS $CFLAGS" + FUSE_LIB="$fuse3_LIBS" for ac_header in pthread.h fuse.h do : as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` diff --git a/configure.ac b/configure.ac index 35b206e7..61330104 100644 --- a/configure.ac +++ b/configure.ac @@ -1416,8 +1416,8 @@ AC_SUBST(FUSE_CMT) if test "$FUSE_LIB" = "-lfuse3" then FUSE_USE_VERSION=35 - CFLAGS="$CFLAGS $fuse3_CFLAGS" - LDFLAGS="$LDFLAGS $fuse3_LDFLAGS" + CFLAGS="$fuse3_CFLAGS $CFLAGS" + FUSE_LIB="$fuse3_LIBS" AC_CHECK_HEADERS([pthread.h fuse.h], [], [AC_MSG_FAILURE([Cannot find fuse3 fuse2fs headers.])], [#define _FILE_OFFSET_BITS 64