2
0
Fork 0

Enable static build.

This commit is contained in:
Stefan Bühler 2008-08-06 23:50:00 +02:00
parent 2fbc7b1408
commit e6463f776b
2 changed files with 7 additions and 2 deletions

View File

@ -95,7 +95,7 @@ def build(bld):
if env['LIB_lua']:
main.source += common_source_lua
main.target='lighttpd' + env['APPEND']
main.uselib += 'lighty dl ev openssl pcre lua ' + common_uselib
main.uselib += 'lighty dl ev openssl pcre lua ' + common_uselib + ' lightylast'
main.includes = '.'
#lighty_mod(bld, 'mod_access', 'mod_access.c')
@ -147,7 +147,7 @@ def build(bld):
if env['LIB_lua']:
tests.source += common_source_lua
tests.target = 'tests'
tests.uselib += 'lighty dl ev openssl pcre lua ' + common_uselib
tests.uselib += 'lighty dl ev openssl pcre lua ' + common_uselib + ' lightylast'
tests.includes = '.'
def configure(conf):

View File

@ -234,6 +234,11 @@ def configure(conf):
conf.env['LINKFLAGS_lightymod'] += [ '-module', '-export-dynamic', '-avoid-version', '-W,l-no-undefined' ]
conf.env['LINKFLAGS_thread'] += [ '-pthread' ]
if opts.buildstatic:
conf.env['FULLSTATIC'] = True
conf.env['LINKFLAGS_lighty'] = [ '-static' ]
conf.env['LIB_lightylast'] += ['m', 'dl']
if sys.platform == 'linux':
conf.env['LIB_lighty'] += ['rt']