Enable static build.

personal/stbuehler/wip
Stefan Bühler 14 years ago
parent 2fbc7b1408
commit e6463f776b
  1. 4
      src/wscript
  2. 5
      wscript

@ -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):

@ -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']

Loading…
Cancel
Save