add _FILE_OFFSET_BITS macros

Not sure where I got the idea of _USE_FILE_OFFSET_BITS from, but I'll leave them in for now.
This commit is contained in:
Adrian Ho 2025-06-11 15:18:04 +08:00
parent 1895d51783
commit 969d13e0f9

View file

@ -95,15 +95,19 @@ class Formula
def setup_fuse_flags
ENV.append "CFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CFLAGS", "-I#{alt_fuse_root}/include/fuse"
ENV.append "CFLAGS", "-D_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", "-D_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", "-D_FILE_OFFSET_BITS=64"
ENV.append "CXXFLAGS", "-D_USE_FILE_OFFSET_BITS=64"
ENV.append "LDFLAGS", "-L#{alt_fuse_root}/lib"
ENV.append "CGO_CPPFLAGS", "-I#{alt_fuse_root}/include"
ENV.append "CGO_CPPFLAGS", "-D_FILE_OFFSET_BITS=64"
ENV.append "CGO_CPPFLAGS", "-D_USE_FILE_OFFSET_BITS=64"
ENV.append "CGO_LDFLAGS", "-L#{alt_fuse_root}/lib"
odebug "PKG_CONFIG = #{ENV.fetch("PKG_CONFIG", nil)}"