From 82e79e93ac2aca07acbf14bfde2102b236c4e079 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Thu, 3 Feb 2011 09:12:11 +0000 Subject: 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. --- scons/crossmingw.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scons') diff --git a/scons/crossmingw.py b/scons/crossmingw.py index 8af0d93f01..cc046229e2 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) -- cgit v1.2.3