From dbddc1876e14a45db75d8a85a416d6528b9efcc6 Mon Sep 17 00:00:00 2001 From: nico Date: Sat, 17 Apr 2010 19:06:42 +0000 Subject: [PATCH] [packages] strace: only change CPPFLAGS when building with an external toolchain (see [19770]), fixes a build failure on mips/mipsel and probably others git-svn-id: svn://svn.openwrt.org/openwrt/packages@20961 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- utils/strace/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/strace/Makefile b/utils/strace/Makefile index 5b096d2fc..c1112d8ae 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)" -- 2.11.0