diff options
author | David Robillard <d@drobilla.net> | 2011-12-11 01:32:55 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-11 01:32:55 +0000 |
commit | 283390ef1bae87030c477d10c0fa43861609f56c (patch) | |
tree | b458114ce9562ae9b004875086a1bc50e148c0a5 | |
parent | 1c967bafdb05bd85ca501e669c77914b13614c3e (diff) | |
download | serd-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-- | wscript | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |