- Use TARGET_CPPFLAGS, needs latest ROSBE.

- Link crt runtime to dlls too.

svn path=/branches/ros-amd64-bringup/; revision=37392
This commit is contained in:
Samuel Serapion
2008-11-17 06:08:13 +00:00
parent 20092b5ba7
commit b89fdd3cc2
@@ -1915,8 +1915,7 @@ MingwModuleHandler::GenerateOtherMacros ()
{
if ( module.cplusplus )
{
// HACK: use host headers when building C++
globalCflags += " $(HOST_CPPFLAGS)";
globalCflags += " $(TARGET_CPPFLAGS)";
}
else
globalCflags += " -nostdinc";
@@ -2684,8 +2683,8 @@ MingwAddImplicitLibraries( Module &module )
{
if ( module.IsDLL () )
{
//pLibrary = new Library ( module, "__mingw_dllmain" );
//module.non_if_data.libraries.insert ( module.non_if_data.libraries.begin(), pLibrary );
pLibrary = new Library ( module, "mingw_dllmain" );
module.non_if_data.libraries.insert ( module.non_if_data.libraries.begin(), pLibrary );
}
else
{