summaryrefslogtreecommitdiff
path: root/util-linux/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/Makefile.in')
-rw-r--r--util-linux/Makefile.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/util-linux/Makefile.in b/util-linux/Makefile.in
index 0be0fca..72136f1 100644
--- a/util-linux/Makefile.in
+++ b/util-linux/Makefile.in
@@ -49,3 +49,14 @@ libraries-y+=$(UTILLINUX_DIR)$(UTILLINUX_AR)
$(UTILLINUX_DIR)$(UTILLINUX_AR): $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y))
$(AR) -ro $@ $(patsubst %,$(UTILLINUX_DIR)%, $(UTILLINUX-y))
+ifneq ($(strip $(CONFIG_LFS)),y)
+ifeq ($(strip $(FDISK_SUPPORT_LARGE_DISKS)),y)
+
+$(UTILLINUX_DIR)fdisk.o: $(UTILLINUX_DIR)fdisk.c
+ $(CC) $(CFLAGS) \
+ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \
+ $(EXTRA_CFLAGS) -c -o $@ $<
+
+endif
+endif
+