1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

build: add -D_FILE_OFFSET_BITS=64

I don't like having this in a common header because it means you end
up including too much and causing unneccessary dependencies.  eg,
lib/misc/lib.h includes libdevmapper.h, internationalisation, and
logging stuff.
This commit is contained in:
Joe Thornber 2018-05-02 18:40:38 +01:00
parent 9fe0be871c
commit 972b535220
4 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,6 @@
#define _LVM_CLOG_LOGGING_H #define _LVM_CLOG_LOGGING_H
#define _GNU_SOURCE #define _GNU_SOURCE
#define _FILE_OFFSET_BITS 64
#include "configure.h" #include "configure.h"
#include <stdio.h> #include <stdio.h>

View File

@ -23,7 +23,6 @@
#define _REENTRANT #define _REENTRANT
#define _GNU_SOURCE #define _GNU_SOURCE
#define _FILE_OFFSET_BITS 64
/* /*
* Symbol export control macros * Symbol export control macros

View File

@ -444,6 +444,9 @@ endif
DEPFLAGS=-MT $@ -MMD -MP -MF $*.d DEPFLAGS=-MT $@ -MMD -MP -MF $*.d
# still needed in 2018 for 32bit builds
DEFS+=-D_FILE_OFFSET_BITS=64
%.o: %.c %.o: %.c
@echo " [CC] $<" @echo " [CC] $<"
$(Q) $(CC) $(DEPFLAGS) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@ $(Q) $(CC) $(DEPFLAGS) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@

View File

@ -19,7 +19,6 @@
#define _LVM_TOOL_H #define _LVM_TOOL_H
#define _GNU_SOURCE #define _GNU_SOURCE
#define _FILE_OFFSET_BITS 64
#include "configure.h" #include "configure.h"