Message ID | 1265188726-23746-1-git-send-email-jacmet@sunsite.dk |
---|---|
State | Accepted |
Commit | acabf7fcea06b7a2926837523561861ed14cab31 |
Headers | show |
On Wed, 2010-02-03 at 10:18 +0100, Peter Korsgaard wrote: > Not all systems have largefile support (E.G. uClibc depending on config), > so unconditionally enforcing largefile breaks the build. > > Work around it by adding a WITHOUT_LARGEFILE flag, similar to the existing > WITHOUT_XATTR. > > Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Pushed to mtd-utils.git, thanks!
diff --git a/common.mk b/common.mk index 5e92b07..d704b44 100644 --- a/common.mk +++ b/common.mk @@ -12,7 +12,10 @@ WFLAGS := -Wall \ $(call cc-option,-Wwrite-strings) \ $(call cc-option,-Wno-sign-compare) CFLAGS += $(WFLAGS) -CPPFLAGS += -D_FILE_OFFSET_BITS=64 + +ifneq ($(WITHOUT_LARGEFILE), 1) + CPPFLAGS += -D_FILE_OFFSET_BITS=64 +endif DESTDIR ?= /usr/local PREFIX=/usr
Not all systems have largefile support (E.G. uClibc depending on config), so unconditionally enforcing largefile breaks the build. Work around it by adding a WITHOUT_LARGEFILE flag, similar to the existing WITHOUT_XATTR. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> --- common.mk | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)