From: garyo Date: Wed, 7 Jan 2009 02:44:29 +0000 (+0000) Subject: Fix issue #1175: allow WIN32_INSERT_DEF=0 to turn off --output-def in mingw link. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f6cc83b465bf3904853d8d15473b55644e97f9b4;p=scons.git Fix issue #1175: allow WIN32_INSERT_DEF=0 to turn off --output-def in mingw link. git-svn-id: http://scons.tigris.org/svn/scons/trunk@3877 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Tool/mingw.py b/src/engine/SCons/Tool/mingw.py index 8c5e68ac..a6e44789 100644 --- a/src/engine/SCons/Tool/mingw.py +++ b/src/engine/SCons/Tool/mingw.py @@ -62,7 +62,8 @@ def shlib_generator(target, source, env, for_signature): if implib: cmd.append('-Wl,--out-implib,'+implib.get_string(for_signature)) def_target = env.FindIxes(target, 'WINDOWSDEFPREFIX', 'WINDOWSDEFSUFFIX') - if def_target: cmd.append('-Wl,--output-def,'+def_target.get_string(for_signature)) + if env.get("WIN32_INSERT_DEF",1) and def_target: \ + cmd.append('-Wl,--output-def,'+def_target.get_string(for_signature)) return [cmd]