diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-02-03 10:18:46 +0100 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-02-15 15:41:42 +0200 |
commit | acabf7fcea06b7a2926837523561861ed14cab31 (patch) | |
tree | 54f066e2f18de52bc6a9e33d2d8e5d08ba85d400 /common.mk | |
parent | a67747b7a314e685085b62e8239442ea54959dbc (diff) |
build: add option to not force largefile support
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>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |