diff options
author | Eike Rathke <erack@redhat.com> | 2012-01-13 23:45:29 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-01-13 23:48:20 +0100 |
commit | ebb95b5a20f88ae422292fcfbbf7781a347b9ce8 (patch) | |
tree | 51aa9614e68abac2822b393b891093ab1618499c /solenv | |
parent | 022ce7d362f146ed69f54aae20cf2b8c582e9f8d (diff) |
make MacOSX happy again and have no /usr/include there
Modifies the workaround of 6ecf6ea77f36a444f985fed25a0d0502f5ae8ac4
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index 7dddcbb983c7..847ef0fc088e 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -129,7 +129,18 @@ gb_COMPILEROPTFLAGS := $(gb_COMPILERDEFAULTOPTFLAGS) endif gb_COMPILERNOOPTFLAGS := -O0 + +# At least with gcc 4.6.2 the situation was that if /usr/include was missing +# from the -I... includes, header files were pulled from /usr/include/ instead +# of solver/$INPATH/inc/external/ +# One should not add /usr/include, but ... have this as workaround now. +# However, MacOSX would bail out with lots of deprecated methods as +# /usr/include is not what's used on Mac. +ifeq ($(OS_FOR_BUILD),MACOSX) +gb_LinkTarget_INCLUDE := $(filter-out %/stl, $(subst -I. , ,$(SOLARINC))) +else gb_LinkTarget_INCLUDE := $(filter-out %/stl, $(subst -I. , ,$(SOLARINC))) -I$(SYSBASE)/usr/include +endif gb_LinkTarget_INCLUDE_STL := $(filter %/stl, $(subst -I. , ,$(SOLARINC))) |