mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
Do not use host headers anymore when building target executables/libraries
svn path=/trunk/; revision=29180
This commit is contained in:
parent
9c968b2b68
commit
2ad309f010
3 changed files with 16 additions and 4 deletions
|
@ -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>
|
||||
|
|
|
@ -6,9 +6,6 @@
|
|||
|
||||
void _default_handler(int signal);
|
||||
|
||||
typedef void (*__p_sig_fn_t)(int);
|
||||
|
||||
|
||||
typedef struct _sig_element
|
||||
{
|
||||
int signal;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue