From 3ffd13fbd2c16c1b297811702f6657ea10b62043 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 5 Jun 2017 13:48:45 -0700 Subject: [PATCH] pciutils: Fix build with external toolchains Passing GNU_TARGET_NAME implies that we have a 4-group triplet (e.g: arm-openwrt-unknown-linux), and this works fine with pciutils' lib/configure operating system detection. If we have an external toolchain (e.g: mipsel-linux-gnu), the configure script is all confused and ends-up picking up i386-ports, which is not valid on the target architecture. Finally, we are not passing TARGET_CPPFLAGS as we should, so let's do that correctly. Signed-off-by: Florian Fainelli --- utils/pciutils/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/pciutils/Makefile b/utils/pciutils/Makefile index 3f61b4450..c0010cf77 100644 --- a/utils/pciutils/Makefile +++ b/utils/pciutils/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pciutils PKG_VERSION:=3.5.2 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@KERNEL/software/utils/pciutils @@ -45,9 +45,9 @@ exit 0 endef MAKE_FLAGS += \ - CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \ + CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ PREFIX="/usr" \ - HOST="$(GNU_TARGET_NAME)" \ + HOST="Linux" \ HWDB="no" \ ZLIB="yes"