aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-11 01:32:55 +0000
committerDavid Robillard <d@drobilla.net>2011-12-11 01:32:55 +0000
commit283390ef1bae87030c477d10c0fa43861609f56c (patch)
treeb458114ce9562ae9b004875086a1bc50e148c0a5
parent1c967bafdb05bd85ca501e669c77914b13614c3e (diff)
downloadserd-283390ef1bae87030c477d10c0fa43861609f56c.tar.gz
serd-283390ef1bae87030c477d10c0fa43861609f56c.tar.bz2
serd-283390ef1bae87030c477d10c0fa43861609f56c.zip
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
-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)