mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 17:35:07 +00:00
-fix linking when entrypoint is set to "0"
See issue #2489 for more details. svn path=/trunk/; revision=27938
This commit is contained in:
parent
d59de2819e
commit
c6260888e2
|
@ -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 () )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue