From patchwork Thu Dec 11 23:27:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 420289 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 5F93B1400DE for ; Fri, 12 Dec 2014 10:28:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 57E58A196C; Thu, 11 Dec 2014 23:28:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id seThyxbcRL2x; Thu, 11 Dec 2014 23:27:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id C882CA1951; Thu, 11 Dec 2014 23:27:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 13A511BFA34 for ; Thu, 11 Dec 2014 23:27:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0B9159264F for ; Thu, 11 Dec 2014 23:27:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nYlNuC22Cvic for ; Thu, 11 Dec 2014 23:27:54 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [212.27.42.1]) by whitealder.osuosl.org (Postfix) with ESMTPS id AA6B292636 for ; Thu, 11 Dec 2014 23:27:54 +0000 (UTC) Received: from localhost.localdomain (unknown [81.57.22.125]) by smtp1-g21.free.fr (Postfix) with ESMTP id ABF04940075; Fri, 12 Dec 2014 00:27:19 +0100 (CET) From: Romain Naour To: buildroot@buildroot.org Date: Fri, 12 Dec 2014 00:27:46 +0100 Message-Id: <1418340467-29999-2-git-send-email-romain.naour@openwide.fr> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1418340467-29999-1-git-send-email-romain.naour@openwide.fr> References: <1418340467-29999-1-git-send-email-romain.naour@openwide.fr> Subject: [Buildroot] [PATCH 2/3] iprutils: Don't include host headers X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: ERROR: unsafe header/library path used in cross-compilation: '/usr/include/ncurses' Signed-off-by: Romain Naour --- package/iprutils/iprutils.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package/iprutils/iprutils.mk b/package/iprutils/iprutils.mk index 53516b6..0721fbf 100644 --- a/package/iprutils/iprutils.mk +++ b/package/iprutils/iprutils.mk @@ -12,11 +12,14 @@ IPRUTILS_LICENSE = Common Public License Version 1.0 IPRUTILS_LICENSE_FILES = LICENSE define IPRUTILS_BUILD_CMDS - $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all + $(MAKE) $(TARGET_CONFIGURE_OPTS) \ + INCLUDEDIR="-I. -I$(STAGING_DIR)/usr/include/ncurses" \ + -C $(@D) all endef define IPRUTILS_INSTALL_TARGET_CMDS - $(MAKE) $(TARGET_CONFIGURE_OPTS) INSTALL_MOD_PATH=$(TARGET_DIR) -C $(@D) install + $(MAKE) $(TARGET_CONFIGURE_OPTS) INSTALL_MOD_PATH=$(TARGET_DIR) \ + -C $(@D) install endef $(eval $(generic-package))