Browse Source

Special tricks for static win64 mixed build

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.9.15
falkTX 4 years ago
parent
commit
34da6cce6e
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      wscript

+ 8
- 0
wscript View File

@@ -425,6 +425,14 @@ def configure(conf):
conf.env['LIBDIR'] = Options.options.libdir32
else:
conf.env['LIBDIR'] = conf.env['PREFIX'] + '/lib32'

if conf.env['IS_WINDOWS'] and conf.env['BUILD_STATIC']:
def replaceFor32bit(env):
for e in env: yield e.replace('x86_64', 'i686', 1)
for env in ('AR', 'CC', 'CXX', 'LINK_CC', 'LINK_CXX'):
conf.all_envs[lib32][env] = list(replaceFor32bit(conf.all_envs[lib32][env]))
conf.all_envs[lib32]['LIB_REGEX'] = ['tre32']

# libdb does not work in mixed mode
conf.all_envs[lib32]['HAVE_DB'] = 0
conf.all_envs[lib32]['HAVE_DB_H'] = 0


Loading…
Cancel
Save