diff options
author | Joakim Plate <elupus@ecce.se> | 2013-10-20 17:11:48 +0200 |
---|---|---|
committer | Joakim Plate <elupus@ecce.se> | 2013-10-20 17:11:48 +0200 |
commit | 077a93367deaf98505c6b3e5c431482be12e46ac (patch) | |
tree | ad9b12efb1e3c51fc826b02817a868526a75ef2c /tools | |
parent | e9724b7ac7610d464008a563e81d8abf687d5674 (diff) |
depends: use -isystem instead of -I to add system includes
This avoids libs using already installed system headers when
building themselves.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/depends/Makefile.include.in | 6 | ||||
-rw-r--r-- | tools/depends/target/config.site.in | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/depends/Makefile.include.in b/tools/depends/Makefile.include.in index c7c452d8b5..c63ae04201 100644 --- a/tools/depends/Makefile.include.in +++ b/tools/depends/Makefile.include.in @@ -46,10 +46,10 @@ READELF=@READELF@ OBJDUMP=@OBJDUMP@ CMAKE=@prefix@/@tool_dir@/bin/cmake -DCMAKE_TOOLCHAIN_FILE=$(PREFIX)/share/Toolchain.cmake -DCMAKE_INSTALL_PREFIX=$(PREFIX) -CFLAGS=@platform_cflags@ @platform_includes@ -I@prefix@/@deps_dir@/include +CFLAGS=@platform_cflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include LDFLAGS=-L@prefix@/@deps_dir@/lib @platform_ldflags@ -CXXFLAGS=@platform_cxxflags@ @platform_includes@ -I@prefix@/@deps_dir@/include -CPPFLAGS=@platform_cflags@ @platform_includes@ -I@prefix@/@deps_dir@/include +CXXFLAGS=@platform_cxxflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include +CPPFLAGS=@platform_cflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include PATH:=@prefix@/@tool_dir@/bin:$(PATH) ifneq (@use_build_toolchain@,) diff --git a/tools/depends/target/config.site.in b/tools/depends/target/config.site.in index 95187fde21..bc5d2787b0 100644 --- a/tools/depends/target/config.site.in +++ b/tools/depends/target/config.site.in @@ -20,10 +20,10 @@ if test "@platform_os@" = "ios" ; then export CCAS="--tag CC @prefix@/@tool_dir@/bin/gas-preprocessor.pl @CC@ -arch @use_cpu@" fi -CFLAGS="@platform_cflags@ @platform_includes@ -I@prefix@/@deps_dir@/include $CFLAGS" +CFLAGS="@platform_cflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include $CFLAGS" LDFLAGS="-L@prefix@/@deps_dir@/lib @platform_ldflags@ $LDFLAGS" -CXXFLAGS="@platform_cxxflags@ @platform_includes@ -I@prefix@/@deps_dir@/include $CXXFLAGS" -CPPFLAGS="@platform_cflags@ @platform_includes@ -I@prefix@/@deps_dir@/include $CPPFLAGS" +CXXFLAGS="@platform_cxxflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include $CXXFLAGS" +CPPFLAGS="@platform_cflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include $CPPFLAGS" export PKG_CONFIG=@prefix@/@tool_dir@/bin/pkg-config export PKG_CONFIG_LIBDIR=@prefix@/@deps_dir@/lib/pkgconfig |