]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - include/builddefs.in
xfsprogs: Fix building xfsprogs on 32-bit platforms (again)
authorEric Biggers <ebiggers3@gmail.com>
Thu, 16 Feb 2017 03:04:03 +0000 (21:04 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 16 Feb 2017 03:04:03 +0000 (21:04 -0600)
commitc4cd2572d1cda3bd7becbf90cc9ad093051869f6
treee49b3cf4a62aac2fd7adcd98852aaac06c19d52b
parent3f5dd6c606403929888b82fad51314c4ff6754cb
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 <ebiggers@google.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/builddefs.in