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 <f.fainelli@gmail.com>
This commit is contained in:
Florian Fainelli 2017-06-05 13:48:45 -07:00
parent 43269ecf01
commit 3ffd13fbd2

View file

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=pciutils PKG_NAME:=pciutils
PKG_VERSION:=3.5.2 PKG_VERSION:=3.5.2
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@KERNEL/software/utils/pciutils PKG_SOURCE_URL:=@KERNEL/software/utils/pciutils
@ -45,9 +45,9 @@ exit 0
endef endef
MAKE_FLAGS += \ MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
PREFIX="/usr" \ PREFIX="/usr" \
HOST="$(GNU_TARGET_NAME)" \ HOST="Linux" \
HWDB="no" \ HWDB="no" \
ZLIB="yes" ZLIB="yes"