From 1668750308c22e44ee05cbc1e0cb8d34a4fc8c9d Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 16 Apr 2018 01:13:32 +0200 Subject: [PATCH] always build with 64bit inodes on linux --- build.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.cc b/build.cc index b13907b..0efe88a 100644 --- a/build.cc +++ b/build.cc @@ -5,6 +5,9 @@ * COPYING.md file further information. */ +/* just glibc bein awful */ +#define _FILE_OFFSET_BITS 64 + #include #include #include @@ -63,7 +66,8 @@ static fs::path OSTD_SHARED_LIB = "libostd.so"; static fs::path OSTD_STATIC_LIB = "libostd.a"; static std::string DEFAULT_CXXFLAGS = "-std=c++1z -I. -O2 -Wall -Wextra " - "-Wshadow -Wold-style-cast -fPIC"; + "-Wshadow -Wold-style-cast -fPIC "; + "-D_FILE_OFFSET_BITS=64" static std::string DEFAULT_LDFLAGS = "-pthread"; static std::string DEFAULT_ASFLAGS = "-fPIC";