diff options
author | Joe Thornber <ejt@redhat.com> | 2018-05-02 18:40:38 +0100 |
---|---|---|
committer | Joe Thornber <ejt@redhat.com> | 2018-05-02 18:40:38 +0100 |
commit | 972b535220d2d9f4df583bcc5e67e8cc14ca6294 (patch) | |
tree | 0c1a24e1f5176d418b66ae9fd17179878c68f92b /make.tmpl.in | |
parent | 9fe0be871c916c1105212f916d8c6904d12ea5b4 (diff) | |
download | lvm2-972b535220d2d9f4df583bcc5e67e8cc14ca6294.tar.gz |
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.
Diffstat (limited to 'make.tmpl.in')
-rw-r--r-- | make.tmpl.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/make.tmpl.in b/make.tmpl.in index 3a9f45059..d3a80ef0c 100644 --- a/make.tmpl.in +++ b/make.tmpl.in @@ -444,6 +444,9 @@ endif DEPFLAGS=-MT $@ -MMD -MP -MF $*.d +# still needed in 2018 for 32bit builds +DEFS+=-D_FILE_OFFSET_BITS=64 + %.o: %.c @echo " [CC] $<" $(Q) $(CC) $(DEPFLAGS) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@ |