Try FILE_OFFSET_BITS for all platforms.
authorCarl Hetherington <cth@carlh.net>
Wed, 3 Jul 2013 12:27:08 +0000 (13:27 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 3 Jul 2013 12:27:08 +0000 (13:27 +0100)
wscript

diff --git a/wscript b/wscript
index 76f6deb2b55717b0d74d3e74cad1b5afeed5dd13..b87191f424c7d097bb0365331dce95c3a454685d 100644 (file)
--- a/wscript
+++ b/wscript
@@ -29,7 +29,7 @@ def configure(conf):
     conf.env.TARGET_LINUX = not conf.env.TARGET_WINDOWS and not conf.env.TARGET_OSX
 
     conf.env.append_value('CXXFLAGS', ['-D__STDC_CONSTANT_MACROS', '-D__STDC_LIMIT_MACROS', '-msse', '-mfpmath=sse', '-ffast-math', '-fno-strict-aliasing',
-                                       '-Wall', '-Wno-attributes', '-Wextra'])
+                                       '-Wall', '-Wno-attributes', '-Wextra', '-D_FILE_OFFSET_BITS=64'])
 
     if conf.env.TARGET_WINDOWS:
         conf.env.append_value('CXXFLAGS', ['-DDVDOMATIC_WINDOWS', '-DWIN32_LEAN_AND_MEAN', '-DBOOST_USE_WINDOWS_H', '-DUNICODE'])
@@ -49,7 +49,6 @@ def configure(conf):
         conf.env.append_value('CXXFLAGS', '-DDVDOMATIC_POSIX')
         conf.env.append_value('CXXFLAGS', '-DPOSIX_LOCALE_PREFIX="%s/share/locale"' % conf.env['PREFIX'])
         conf.env.append_value('CXXFLAGS', '-DPOSIX_ICON_PREFIX="%s/share/dvdomatic"' % conf.env['PREFIX'])
-        conf.env.append_value('CXXFLAGS', '-D_FILE_OFFSET_BITS=64')
         boost_lib_suffix = ''
         boost_thread = 'boost_thread'
         conf.env.append_value('LINKFLAGS', '-pthread')