From f6cc83b465bf3904853d8d15473b55644e97f9b4 Mon Sep 17 00:00:00 2001 From: garyo Date: Wed, 7 Jan 2009 02:44:29 +0000 Subject: [PATCH] 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 --- src/engine/SCons/Tool/mingw.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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] -- 2.26.2