2
0
Fork 0

fix compile flags for modules in wscript

This commit is contained in:
Thomas Porzelt 2009-01-02 22:07:52 +01:00
parent bf549bbe0d
commit 825b809b06
1 changed files with 2 additions and 2 deletions

View File

@ -77,13 +77,13 @@ def lighty_mod(bld, target, src, uselib = [], option = ''):
mod.target = target
mod.source = src
mod.uselib = ['lightymod'] + common_uselib + uselib
#mod.ccflags = common_ccflags
mod.ccflags = common_ccflags
def configure(conf):
opts = Options.options
conf.env['CCFLAGS_lighty'] = conf.env['CCFLAGS'] + common_ccflags + lighty_common_ccflags
conf.env['CCFLAGS_lightymod'] = conf.env['CCFLAGS'] + common_ccflags + [ '-DHAVE_CONFIG_H' ]
conf.env['CCFLAGS_lightymod'] = conf.env['CCFLAGS'] + common_ccflags + lighty_common_ccflags
if not opts.debug:
conf.env['CCFLAGS'] += ['-O2']
if opts.static: