summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-07-20 11:52:25 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-07-20 11:52:25 +0000
commit95cdde240daef749fad61fa36bdbd47c82febb08 (patch)
treea25feaccc6541dd71150811845542ad8acce207d /wscript
parent23f86529fd2c4d06285671d55f695438e9cb58ac (diff)
push optimization flags into CXXFLAGS as well as CCFLAGS, and add LARGEFILE64_SOURCE for C++
git-svn-id: svn://localhost/ardour2/branches/3.0@5394 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 3 insertions, 2 deletions
diff --git a/wscript b/wscript
index 6484028949..cf1d0d721f 100644
--- a/wscript
+++ b/wscript
@@ -201,7 +201,7 @@ def set_compiler_flags (conf,opt):
if conf.env['build_target'] == 'x86_64' and opt.vst:
print "\n\n=================================================="
- print "You cannot use VST plugins with a 64 bit host. Please run scons with VST=0"
+ print "You cannot use VST plugins with a 64 bit host. Please run waf with --vst=0"
print "\nIt is theoretically possible to build a 32 bit host on a 64 bit system."
print "However, this is tricky and not recommended for beginners."
sys.exit (-1)
@@ -255,6 +255,7 @@ def set_compiler_flags (conf,opt):
conf.env.append_value('LINKFLAGS', debug_flags)
else:
conf.env.append_value('CCFLAGS', optimization_flags)
+ conf.env.append_value('CXXFLAGS', optimization_flags)
conf.env.append_value('LINKFLAGS', optimization_flags)
if opt.stl_debug:
@@ -283,7 +284,7 @@ def set_compiler_flags (conf,opt):
#
conf.env.append_value('CCFLAGS', [ '-D_LARGEFILE64_SOURCE', '-D_LARGEFILE_SOURCE' ])
- conf.env.append_value('CXXFLAGS', [ '-D_LARGEFILE_SOURCE', '-D_LARGEFILE_SOURCE' ])
+ conf.env.append_value('CXXFLAGS', [ '-D_LARGEFILE64_SOURCE', '-D_LARGEFILE_SOURCE' ])
if opt.nls:
conf.env.append_value('CXXFLAGS', '-DENABLE_NLS')
conf.env.append_value('CCFLAGS', '-DENABLE_NLS')