From 2b743aa5bbdf7df9372310454c35216faf3d7dac Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 27 Oct 2009 12:05:38 +0100 Subject: [PATCH] Enable large file support. --- wscript | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wscript b/wscript index 68c6cf710d..1b204e6c0f 100644 --- a/wscript +++ b/wscript @@ -132,6 +132,12 @@ def configure(conf): conf.env.append_value("CCFLAGS", "-DX_STACKSIZE=%d" % (1024*64)) + # LFS + conf.env.append_value('CCFLAGS', '-D_LARGEFILE_SOURCE') + conf.env.append_value('CXXFLAGS', '-D_LARGEFILE_SOURCE') + conf.env.append_value('CCFLAGS', '-D_FILE_OFFSET_BITS=64') + conf.env.append_value('CXXFLAGS', '-D_FILE_OFFSET_BITS=64') + # Split off debug variant before adding variant specific defines debug_env = conf.env.copy() conf.set_env_name('debug', debug_env)