Author: cwittich
Date: Sat Jul 28 13:42:27 2007
New Revision: 27938
URL:
http://svn.reactos.org/svn/reactos?rev=27938&view=rev
Log:
-fix linking when entrypoint is set to "0"
See issue #2489 for more details.
Modified:
trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
Modified: trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/mingw…
==============================================================================
--- trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp (original)
+++ trunk/reactos/tools/rbuild/backend/mingw/modulehandler.cpp Sat Jul 28 13:42:27 2007
@@ -2735,7 +2735,16 @@
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 () )
{