mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +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:
@@ -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 () )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user