From 283390ef1bae87030c477d10c0fa43861609f56c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 11 Dec 2011 01:32:55 +0000 Subject: Add --largefile configure option for large files on 32-bit systems. Disabled by default because I am not sure about binary compatibility issues... git-svn-id: http://svn.drobilla.net/serd/trunk@235 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- wscript | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wscript') 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) -- cgit v1.2.1