aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Rules.mk')
-rw-r--r--tools/Rules.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/Rules.mk b/tools/Rules.mk
index 8d55e038f0..3f03a315c4 100644
--- a/tools/Rules.mk
+++ b/tools/Rules.mk
@@ -65,11 +65,12 @@ CFLAGS += -D__XEN_TOOLS__
CFLAGS += -MMD -MF .$(@F).d
DEPS = .*.d
+ifneq ($(FILE_OFFSET_BITS),)
+CFLAGS += -D_FILE_OFFSET_BITS=$(FILE_OFFSET_BITS)
+endif
ifneq ($(XEN_OS),NetBSD)
# Enable implicit LFS support *and* explicit LFS names.
-CFLAGS += $(shell getconf LFS_CFLAGS)
CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-LDFLAGS += $(shell getconf LFS_LDFLAGS)
endif
# 32-bit x86 does not perform well with -ve segment accesses on Xen.