added a fullstatic target

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@922 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.11
Jan Kneschke 18 years ago
parent a5e280fd4b
commit 77083977ae

@ -175,7 +175,7 @@ if 1:
if env['with_ldap']:
if autoconf.CheckLibWithHeader('ldap', 'ldap.h', 'C'):
autoconf.env.Append(CPPFLAGS = [ '-DHAVE_LDAP_H', '-DHAVE_LIBLDAP' ], LIBLDAP = [ 'ldap', 'sasl2', 'gssapi_krb5', 'ssl', 'crypto', 'krb5', 'krb5support', 'k5crypto' ])
autoconf.env.Append(CPPFLAGS = [ '-DHAVE_LDAP_H', '-DHAVE_LIBLDAP' ], LIBLDAP = [ 'ldap' ])
if autoconf.CheckLibWithHeader('lber', 'lber.h', 'C'):
autoconf.env.Append(CPPFLAGS = [ '-DHAVE_LBER_H', '-DHAVE_LIBLBER' ], LIBLBER = 'lber')

@ -74,12 +74,7 @@ staticenv = env.Copy(CPPFLAGS=[ env['CPPFLAGS'], '-DLIGHTTPD_STATIC', '-DOPENSSL
## all the core-sources + the modules
staticsrc = src + common_src
# if openssl is used with kerberos5
libssl = [ 'ssl', 'crypto' ]
libpcre = [ 'pcre' ]
libfam = [ 'fam' ]
staticlib = libssl + libpcre + libfam
staticlib = env['LIBS']
staticinit = ''
for module in modules.keys():
staticsrc += modules[module]['src']
@ -94,13 +89,22 @@ staticobj = []
for cfile in staticsrc:
staticobj += [ staticenv.Object('static-' + cfile.replace('.c', ''), cfile) ]
staticbin = staticenv.Program('lighttpd-static',
staticbin = staticenv.Program('lighttpd-semi-static',
staticobj,
LIBS = staticlib
)
## you might have to adjust the list of libs and the order for your setup
## this is tricky, be warned
fullstaticlib = staticlib + [ 'sasl2', 'gssapi_krb5', 'ssl', 'crypto', 'crypt', 'krb5', 'k5crypto', 'krb5support', 'com_err', 'resolv' ]
fullstaticbin = staticenv.Program('lighttpd-static',
staticobj,
LIBS = staticlib,
# LINKFLAGS= ['-static']
LIBS = fullstaticlib,
LINKFLAGS= ['-static']
)
Alias('static', staticbin)
Alias('fullstatic', fullstaticbin)
implib = 'lighttpd.exe.a'
bin_targets = ['lighttpd']
@ -139,6 +143,7 @@ if env['COMMON_LIB'] == 'lib':
inst += env.Install('${bindir}', common_lib)
inst += env.Install('${libdir}', instlib)
env.Alias('dynamic', instbin)
env.Alias('install', inst)
pkgdir = '.'

Loading…
Cancel
Save