summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadek Podgorny <radek@podgorny.cz>2022-01-04 21:56:56 +0100
committerRadek Podgorny <radek@podgorny.cz>2022-01-04 21:56:56 +0100
commitf6525719ddd34e1ac90cdc1f4356bc5b94fed793 (patch)
tree818d1a63ee70041836f0d0b966f1346dcfcfc205
parentdc20e4723e2fce314da40c7f948979d366aa4b73 (diff)
downloadunionfs-fuse-git-f6525719ddd34e1ac90cdc1f4356bc5b94fed793.tar.gz
makefile: add manual option to use libfuse2
-rw-r--r--src/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index a57a23e..06ae7b2 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,7 +1,14 @@
CFLAGS += -W -Wall -fPIC
+
CPPFLAGS += $(shell pkg-config --cflags fuse3)
+LIB = $(shell pkg-config --libs fuse3)
CPPFLAGS += -DFUSE_USE_VERSION=30
+# define the following (and comment out the above) for libfuse2
+#CPPFLAGS += $(shell pkg-config --cflags fuse)
+#LIB = $(shell pkg-config --libs fuse) -lpthread
+#CPPFLAGS += -DFUSE_USE_VERSION=29
+
CPPFLAGS += -DLIBC_XATTR # glibc nowadays includes xattr
# CPPFLAGS += -DLIBATTR_XATTR # define this to libattr xattr include
@@ -10,8 +17,6 @@ CPPFLAGS += -DLIBC_XATTR # glibc nowadays includes xattr
LDFLAGS +=
-LIB = $(shell pkg-config --libs fuse3)
-
HASHTABLE_OBJ = hashtable.o hashtable_itr.o
LIBUNIONFS_OBJ = fuse_ops.o opts.o debug.o findbranch.o readdir.o \
general.o unlink.o rmdir.o cow.o cow_utils.o string.o \