aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/wscript b/wscript
index ae8cc6f4..928c9d6b 100644
--- a/wscript
+++ b/wscript
@@ -39,6 +39,8 @@ def options(opt):
help="Include runtime stack sanity checks")
opt.add_option('--static', action='store_true', default=False, dest='static',
help="Build static library")
+ opt.add_option('--largefile', action='store_true', default=False, dest='largefile',
+ help="Build with large file support on 32-bit systems")
def configure(conf):
conf.load('compiler_c')
@@ -54,6 +56,9 @@ def configure(conf):
if Options.options.stack_check:
autowaf.define(conf, 'SERD_STACK_CHECK', SERD_VERSION)
+ if Options.options.largefile:
+ conf.env.append_unique('CFLAGS', '-D_FILE_OFFSET_BITS=64')
+
autowaf.define(conf, 'SERD_VERSION', SERD_VERSION)
conf.write_config_header('serd-config.h', remove=False)