summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-04-08 10:13:01 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-04-13 11:55:40 +0100
commitd7909538067843d60b9cb56d79a51e2a240c8b18 (patch)
tree2f25f09eb8b61c472994dd84aa0c32978a75077a
parentc50135a3893d8bb7736b0ab34d960026fbbc7012 (diff)
downloadopenembedded-core-contrib-d7909538067843d60b9cb56d79a51e2a240c8b18.tar.gz
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 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r--meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb
index 2620610903..f29c55e346 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.47.0.bb
@@ -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'