mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:45:46 +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 root="intermediate">include/psdk</include>
|
||||||
<include>include/dxsdk</include>
|
<include>include/dxsdk</include>
|
||||||
<include>include/crt</include>
|
<include>include/crt</include>
|
||||||
|
<include>include/crt/mingw32</include>
|
||||||
<include>include/ddk</include>
|
<include>include/ddk</include>
|
||||||
<include>include/GL</include>
|
<include>include/GL</include>
|
||||||
<include>include/ndk</include>
|
<include>include/ndk</include>
|
||||||
|
|
|
@ -6,9 +6,6 @@
|
||||||
|
|
||||||
void _default_handler(int signal);
|
void _default_handler(int signal);
|
||||||
|
|
||||||
typedef void (*__p_sig_fn_t)(int);
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct _sig_element
|
typedef struct _sig_element
|
||||||
{
|
{
|
||||||
int signal;
|
int signal;
|
||||||
|
|
|
@ -1945,7 +1945,21 @@ MingwModuleHandler::GenerateOtherMacros ()
|
||||||
if ( !module.allowWarnings )
|
if ( !module.allowWarnings )
|
||||||
globalCflags += " -Werror";
|
globalCflags += " -Werror";
|
||||||
if ( module.host == HostTrue )
|
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
|
// Always force disabling of sibling calls optimisation for GCC
|
||||||
// (TODO: Move to version-specific once this bug is fixed in GCC)
|
// (TODO: Move to version-specific once this bug is fixed in GCC)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue