From: Nicolas Thill Date: Sat, 17 Apr 2010 19:06:42 +0000 (+0000) Subject: [packages] strace: only change CPPFLAGS when building with an external toolchain... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ff0936316653148cab56127c9342761d5bebc493;p=openwrt%2Fsvn-archive%2Farchive.git [packages] strace: only change CPPFLAGS when building with an external toolchain (see [19770]), fixes a build failure on mips/mipsel and probably others SVN-Revision: 20961 --- diff --git a/utils/strace/Makefile b/utils/strace/Makefile index 5b096d2fcb..c1112d8aea 100644 --- a/utils/strace/Makefile +++ b/utils/strace/Makefile @@ -44,9 +44,9 @@ endef CONFIGURE_VARS += \ ac_cv_header_linux_netlink_h=yes -# needed when compiling with an external toolchain -TARGET_CFLAGS += \ - -I$(LINUX_DIR)/include +ifneq ($(CONFIG_EXTERNAL_TOOLCHAIN),) + TARGET_CPPFLAGS += -I$(LINUX_DIR)/include +endif MAKE_FLAGS := \ CCOPT="$(TARGET_CFLAGS)"