diff --git a/devel/fossil/patches/patch-auto_def b/devel/fossil/patches/patch-auto_def index 0c57f05d50c..a8c0775a4fe 100644 --- a/devel/fossil/patches/patch-auto_def +++ b/devel/fossil/patches/patch-auto_def @@ -10,3 +10,13 @@ Index: auto.def msg-result "Trying to link statically" } else { define-append EXTRA_CFLAGS -DFOSSIL_DYNAMIC_BUILD=1 +@@ -814,7 +814,8 @@ if {[opt-bool fusefs]} { + if {[opt-bool static]} { + msg-result "FuseFS support disabled due to -static" + } elseif {[cc-check-function-in-lib fuse_mount fuse]} { +- define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS ++ set cflags [exec pkg-config fuse --cflags-only-I] ++ define-append EXTRA_CFLAGS -DFOSSIL_HAVE_FUSEFS $cflags + define FOSSIL_HAVE_FUSEFS 1 + msg-result "FuseFS support enabled" + } diff --git a/sysutils/unionfs-fuse/Makefile b/sysutils/unionfs-fuse/Makefile index 696f1ea1ccd..c833a7b3775 100644 --- a/sysutils/unionfs-fuse/Makefile +++ b/sysutils/unionfs-fuse/Makefile @@ -11,7 +11,8 @@ PERMIT_PACKAGE = Yes WANTLIB = c fuse pthread -MAKE_FLAGS = CPPFLAGS="-DFUSE_USE_VERSION=29 -DDISABLE_XATTR" \ +MAKE_FLAGS = CPPFLAGS="-DFUSE_USE_VERSION=29 -DDISABLE_XATTR \ + `pkg-config --cflags fuse`" \ LIB="-lfuse -lpthread" ALL_TARGET = build