summaryrefslogtreecommitdiffstats
path: root/make/newt.mk
diff options
context:
space:
mode:
Diffstat (limited to 'make/newt.mk')
-rw-r--r--make/newt.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/make/newt.mk b/make/newt.mk
index 56fba9ea0..ac0c3a1cf 100644
--- a/make/newt.mk
+++ b/make/newt.mk
@@ -8,10 +8,11 @@ NEWT_SITE=http://ftp.debian.org/debian/pool/main/n/newt
NEWT_DIR=$(BUILD_DIR)/newt-0.50.17
NEWT_PATCH=$(SOURCE_DIR)/newt.patch
ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
-NEWT_CFLAGS="-Os -g -fPIC -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64"
+NEWT_CFLAGS="-Os -g -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
else
-NEWT_CFLAGS="-Os -g -fPIC"
+NEWT_CFLAGS="-Os -g"
endif
+NEWT_CFLAGS+="-fPIC"
$(DL_DIR)/$(NEWT_SOURCE):
$(WGET) -P $(DL_DIR) $(NEWT_SITE)/$(NEWT_SOURCE)