[Git][reproducible-builds/disorderfs][rclobus/fuse3] Only set _FILE_OFFSET_BITS for 32-bit platforms

Roland Clobus (@rclobus) gitlab at salsa.debian.org
Sat Jan 3 13:57:52 UTC 2026



Roland Clobus pushed to branch rclobus/fuse3 at Reproducible Builds / disorderfs


Commits:
ef919f9b by Roland Clobus at 2026-01-03T14:56:58+01:00
Only set _FILE_OFFSET_BITS for 32-bit platforms

- - - - -


1 changed file:

- Makefile


Changes:

=====================================
Makefile
=====================================
@@ -30,13 +30,16 @@ HAS_A2X ?= $(shell command -v a2x >/dev/null && echo yes || echo no)
 
 # FUSE
 PKG_CONFIG ?= pkg-config
-FUSE_CFLAGS ?= $(shell $(PKG_CONFIG) --cflags fuse3) -DFUSE_USE_VERSION=31 -D_FILE_OFFSET_BITS=64
+FUSE_CFLAGS ?= $(shell $(PKG_CONFIG) --cflags fuse3) -DFUSE_USE_VERSION=31
 FUSE_LIBS ?= $(shell $(PKG_CONFIG) --libs fuse3)
 
 # CXXFLAGS
 CXXFLAGS += -Wall -Wextra -pedantic -O2 -g
 CXXFLAGS += -std=c++20 -Wno-unused-parameter
 CXXFLAGS += $(FUSE_CFLAGS)
+ifeq ($(shell getconf LONG_BIT),32)
+    CXXFLAGS += -D_FILE_OFFSET_BITS=64
+endif
 
 # Files
 OBJFILES = disorderfs.o



View it on GitLab: https://salsa.debian.org/reproducible-builds/disorderfs/-/commit/ef919f9bc2f942e999fd8e427efc9201257bade8

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/disorderfs/-/commit/ef919f9bc2f942e999fd8e427efc9201257bade8
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20260103/4e394249/attachment.htm>


More information about the rb-commits mailing list