Do not use host headers anymore when building target executables/libraries

svn path=/trunk/; revision=29180
This commit is contained in:
Hervé Poussineau 2007-09-24 11:43:38 +00:00
parent 9c968b2b68
commit 2ad309f010
3 changed files with 16 additions and 4 deletions

View file

@ -24,6 +24,7 @@
<include root="intermediate">include/psdk</include>
<include>include/dxsdk</include>
<include>include/crt</include>
<include>include/crt/mingw32</include>
<include>include/ddk</include>
<include>include/GL</include>
<include>include/ndk</include>

View file

@ -6,9 +6,6 @@
void _default_handler(int signal);
typedef void (*__p_sig_fn_t)(int);
typedef struct _sig_element
{
int signal;

View file

@ -1945,7 +1945,21 @@ MingwModuleHandler::GenerateOtherMacros ()
if ( !module.allowWarnings )
globalCflags += " -Werror";
if ( module.host == HostTrue )
globalCflags += " $(HOST_CFLAGS)";
{
if ( module.cplusplus )
globalCflags += " $(HOST_CPPFLAGS)";
else
globalCflags += " $(HOST_CFLAGS)";
}
else
{
globalCflags += " -nostdinc";
if ( module.cplusplus )
{
// HACK: use host headers when building C++
globalCflags += " $(HOST_CPPFLAGS)";
}
}
// Always force disabling of sibling calls optimisation for GCC
// (TODO: Move to version-specific once this bug is fixed in GCC)