-fix linking when entrypoint is set to "0"

See issue #2489 for more details.

svn path=/trunk/; revision=27938
This commit is contained in:
Christoph von Wittich 2007-07-28 09:42:27 +00:00
parent d59de2819e
commit c6260888e2

View file

@ -2735,7 +2735,16 @@ MingwAddImplicitLibraries( Module &module )
Library* pLibrary;
if ( !module.isDefaultEntryPoint )
{
if ( module.GetEntryPoint(false) == "0" )
{
pLibrary = new Library ( module, "mingw_common" );
module.non_if_data.libraries.insert ( module.non_if_data.libraries.begin() , pLibrary );
pLibrary = new Library ( module, "msvcrt" );
module.non_if_data.libraries.push_back ( pLibrary );
}
return;
}
if ( module.IsDLL () )
{