diff options
author | José Fonseca <[email protected]> | 2011-09-06 13:13:32 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-09-06 13:18:58 +0100 |
commit | 0646246cae023333220aebddd142670858f70e5a (patch) | |
tree | 34e6964d333a3c24fd4e490a4ae8b55427e77b4a /scons/gallium.py | |
parent | 1d52ddc3bba276451fdd690a5e9f430505278062 (diff) |
scons: Move MinGW flags from crossmingw.py to gallium.py
So that they are used by native MinGW compilers too.
Diffstat (limited to 'scons/gallium.py')
-rwxr-xr-x | scons/gallium.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py index 7135251d7a3..5103b924855 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -279,6 +279,8 @@ def generate(env): ('_WIN32_WINNT', '0x0601'), ('WINVER', '0x0601'), ] + if gcc: + cppdefines += [('__MSVCRT_VERSION__', '0x0700')] if msvc and env['toolchain'] != 'winddk': cppdefines += [ 'VC_EXTRALEAN', @@ -532,6 +534,12 @@ def generate(env): pass else: env['_LIBFLAGS'] = '-Wl,--start-group ' + env['_LIBFLAGS'] + ' -Wl,--end-group' + if env['platform'] == 'windows': + # Avoid depending on gcc runtime DLLs + linkflags += ['-static-libgcc'] + # Handle the @xx symbol munging of DLL exports + shlinkflags += ['-Wl,--enable-stdcall-fixup'] + #shlinkflags += ['-Wl,--kill-at'] if msvc: if env['build'] == 'release': # enable Link-time Code Generation |