diff options
author | José Fonseca <[email protected]> | 2011-02-03 09:12:11 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-02-03 09:16:49 +0000 |
commit | 82e79e93ac2aca07acbf14bfde2102b236c4e079 (patch) | |
tree | cfce8d81e000a6e12868419cdcb9ee99eeb05f3a /scons/crossmingw.py | |
parent | aa31a5cbc7b52eb1d03c6eab414479249830eabf (diff) |
scons: Eliminate libgcc_s_sjlj-1.dll dependency
Certain mingw32 cross compilers (e.g. RedHat's) defaults to use DLL gcc
runtime.
Given the main deliverable from this project are self-contained drivers,
which are loaded by any application, this dependency can cause havoc.
Diffstat (limited to 'scons/crossmingw.py')
-rw-r--r-- | scons/crossmingw.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scons/crossmingw.py b/scons/crossmingw.py index 8af0d93f01a..cc046229e2c 100644 --- a/scons/crossmingw.py +++ b/scons/crossmingw.py @@ -194,5 +194,8 @@ def generate(env): env.AppendUnique(SHLINKFLAGS = ['-Wl,--enable-stdcall-fixup']) #env.AppendUnique(SHLINKFLAGS = ['-Wl,--kill-at']) + # Avoid depending on gcc runtime DLLs + env.AppendUnique(LINKFLAGS = ['-static-libgcc']) + def exists(env): return find(env) |