From 077a93367deaf98505c6b3e5c431482be12e46ac Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Sun, 20 Oct 2013 17:11:48 +0200 Subject: depends: use -isystem instead of -I to add system includes This avoids libs using already installed system headers when building themselves. --- tools/depends/Makefile.include.in | 6 +++--- tools/depends/target/config.site.in | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tools') 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 -- cgit v1.2.3