From c4cd2572d1cda3bd7becbf90cc9ad093051869f6 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Wed, 15 Feb 2017 21:04:03 -0600 Subject: [PATCH] xfsprogs: Fix building xfsprogs on 32-bit platforms (again) Building xfsprogs on 32-bit platforms was broken again by the recent split of BUILD_CFLAGS from CFLAGS. -D_FILE_OFFSET_BITS=64 was not added to BUILD_CFLAGS, but in fact BUILD_CFLAGS is used to compile crc32selftest, which includes xfs.h and therefore requires this declaration. Fix this by adding -D_FILE_OFFSET_BITS=64 to BUILD_CFLAGS. Fixes: 0a71e3839630 ("build: Allow compiling xfsprogs in a cross compile environment") Signed-off-by: Eric Biggers Reviewed-by: Eric Sandeen Signed-off-by: Eric Sandeen --- include/builddefs.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/builddefs.in b/include/builddefs.in index 94d25fc07..4d6bb2d8f 100644 --- a/include/builddefs.in +++ b/include/builddefs.in @@ -26,7 +26,7 @@ MALLOCLIB = @malloc_lib@ LOADERFLAGS = @LDFLAGS@ LTLDFLAGS = @LDFLAGS@ CFLAGS = @CFLAGS@ -D_FILE_OFFSET_BITS=64 -BUILD_CFLAGS = @BUILD_CFLAGS@ +BUILD_CFLAGS = @BUILD_CFLAGS@ -D_FILE_OFFSET_BITS=64 LIBRT = @librt@ LIBUUID = @libuuid@ -- 2.47.2