Compare commits

..

2 commits

Author SHA1 Message Date
gromgit
4e207ed849 btfs-mac 3.1 2025-11-28 14:13:15 +08:00
Adrian Ho
0649e8a73e require/macfuse: add base include dir to flags
Some checks failed
brew test-bot / test-bot (macos-14) (push) Has been cancelled
brew test-bot / test-bot (macos-15) (push) Has been cancelled
brew test-bot / test-bot (macos-26) (push) Has been cancelled
Some projects add subdir to their #include's.
2025-11-28 14:11:03 +08:00

View file

@ -100,19 +100,20 @@ class Formula
end end
def setup_fuse_flags def setup_fuse_flags
ENV.append "CFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CFLAGS", "-I#{alt_fuse_root}/include/fuse" ENV.append "CFLAGS", "-I#{alt_fuse_root}/include/fuse"
ENV.append "CFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CFLAGS", "-D_FILE_OFFSET_BITS=64" ENV.append "CFLAGS", "-D_FILE_OFFSET_BITS=64"
ENV.append "CFLAGS", "-D_USE_FILE_OFFSET_BITS=64" ENV.append "CFLAGS", "-D_USE_FILE_OFFSET_BITS=64"
ENV.append "CPPFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CPPFLAGS", "-I#{alt_fuse_root}/include/fuse" ENV.append "CPPFLAGS", "-I#{alt_fuse_root}/include/fuse"
ENV.append "CPPFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CPPFLAGS", "-D_FILE_OFFSET_BITS=64" ENV.append "CPPFLAGS", "-D_FILE_OFFSET_BITS=64"
ENV.append "CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64" ENV.append "CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64"
ENV.append "CXXFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CXXFLAGS", "-I#{alt_fuse_root}/include/fuse" ENV.append "CXXFLAGS", "-I#{alt_fuse_root}/include/fuse"
ENV.append "CPPFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CXXFLAGS", "-D_FILE_OFFSET_BITS=64" ENV.append "CXXFLAGS", "-D_FILE_OFFSET_BITS=64"
ENV.append "CXXFLAGS", "-D_USE_FILE_OFFSET_BITS=64" ENV.append "CXXFLAGS", "-D_USE_FILE_OFFSET_BITS=64"
ENV.append "LDFLAGS", "-L#{alt_fuse_root}/lib" ENV.append "LDFLAGS", "-L#{alt_fuse_root}/lib"
ENV.append "CGO_CPPFLAGS", "-I#{alt_fuse_root}/include/fuse"
ENV.append "CGO_CPPFLAGS", "-I#{alt_fuse_root}/include" ENV.append "CGO_CPPFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CGO_CPPFLAGS", "-D_FILE_OFFSET_BITS=64" ENV.append "CGO_CPPFLAGS", "-D_FILE_OFFSET_BITS=64"
ENV.append "CGO_CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64" ENV.append "CGO_CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64"
@ -125,16 +126,20 @@ class Formula
def setup_fuse3_flags def setup_fuse3_flags
ENV.append "CFLAGS", "-I#{alt_fuse_root}/include/fuse3" ENV.append "CFLAGS", "-I#{alt_fuse_root}/include/fuse3"
ENV.append "CFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CFLAGS", "-D_FILE_OFFSET_BITS=64" ENV.append "CFLAGS", "-D_FILE_OFFSET_BITS=64"
ENV.append "CFLAGS", "-D_USE_FILE_OFFSET_BITS=64" ENV.append "CFLAGS", "-D_USE_FILE_OFFSET_BITS=64"
ENV.append "CPPFLAGS", "-I#{alt_fuse_root}/include/fuse3" ENV.append "CPPFLAGS", "-I#{alt_fuse_root}/include/fuse3"
ENV.append "CPPFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CPPFLAGS", "-D_FILE_OFFSET_BITS=64" ENV.append "CPPFLAGS", "-D_FILE_OFFSET_BITS=64"
ENV.append "CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64" ENV.append "CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64"
ENV.append "CXXFLAGS", "-I#{alt_fuse_root}/include/fuse3" ENV.append "CXXFLAGS", "-I#{alt_fuse_root}/include/fuse3"
ENV.append "CXXFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CXXFLAGS", "-D_FILE_OFFSET_BITS=64" ENV.append "CXXFLAGS", "-D_FILE_OFFSET_BITS=64"
ENV.append "CXXFLAGS", "-D_USE_FILE_OFFSET_BITS=64" ENV.append "CXXFLAGS", "-D_USE_FILE_OFFSET_BITS=64"
ENV.append "LDFLAGS", "-L#{alt_fuse_root}/lib" ENV.append "LDFLAGS", "-L#{alt_fuse_root}/lib"
ENV.append "CGO_CPPFLAGS", "-I#{alt_fuse_root}/include/fuse3" ENV.append "CGO_CPPFLAGS", "-I#{alt_fuse_root}/include/fuse3"
ENV.append "CGO_CPPFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CGO_CPPFLAGS", "-D_FILE_OFFSET_BITS=64" ENV.append "CGO_CPPFLAGS", "-D_FILE_OFFSET_BITS=64"
ENV.append "CGO_CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64" ENV.append "CGO_CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64"
ENV.append "CGO_LDFLAGS", "-L#{alt_fuse_root}/lib" ENV.append "CGO_LDFLAGS", "-L#{alt_fuse_root}/lib"