Revert r34346, it didn't work the way I thought because of different CRT's on every...
authorColin Finck <colin@reactos.org>
Sun, 6 Jul 2008 22:32:07 +0000 (22:32 +0000)
committerColin Finck <colin@reactos.org>
Sun, 6 Jul 2008 22:32:07 +0000 (22:32 +0000)
Sorry for the wasted commit.

svn path=/trunk/; revision=34347

reactos/tools/rbuild/backend/mingw/modulehandler.cpp

index ae638e2..2a06f29 100644 (file)
@@ -2462,10 +2462,15 @@ MingwBuildToolModuleHandler::GenerateBuildToolModuleTarget ()
        string objectsMacro = GetObjectsMacro ( module );
        string linkDepsMacro = GetLinkingDependenciesMacro ();
        string libsMacro = GetLibsMacro ();
-    string linker = "${host_ld}";
 
        GenerateRules ();
 
+       string linker;
+       if ( module.cplusplus )
+               linker = "${host_gpp}";
+       else
+               linker = "${host_gcc}";
+
        const FileLocation *target_file = GetTargetFilename ( module, NULL );
        fprintf ( fMakefile, "%s: %s %s | %s\n",
                  targetMacro.c_str (),