Skip to contentSkip to conversation

e2fsprogs: Define 64bit off_t on rv32

PATCH New Khem Raj 1 participant 1 message Apr 8, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 e2fsprogs: Define 64bit off_t on rv32

Help configure to build it correctly on rv32 and musl especially, it shoild not ideally poke at _FILE_OFFSET_BITS, its not a portable define

---
 meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb +1 -0
index 2620610903..f29c55e346 100644
@@ -20,6 +20,7 @@ EXTRA_OECONF += "--libdir=${base_libdir} --sbindir=${base_sbindir} \
 
 EXTRA_OECONF:darwin = "--libdir=${base_libdir} --sbindir=${base_sbindir} --enable-bsd-shlibs"
 
+CFLAGS:append:riscv32 = " -D_FILE_OFFSET_BITS=64"
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[fuse] = '--enable-fuse2fs,--disable-fuse2fs,fuse'
 
Signature · 1 line
2.40.0