From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by dpdk.org (Postfix) with ESMTP id 3D7C75907 for ; Tue, 24 Jun 2014 02:23:02 +0200 (CEST) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 23 Jun 2014 17:23:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,533,1400050800"; d="scan'208";a="449073251" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by azsmga001.ch.intel.com with ESMTP; 23 Jun 2014 17:23:18 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id s5O0NHID003993; Tue, 24 Jun 2014 01:23:17 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id s5O0NHvs017109; Tue, 24 Jun 2014 01:23:17 +0100 Received: (from bricha3@localhost) by sivswdev02.ir.intel.com with id s5O0NHbw017105; Tue, 24 Jun 2014 01:23:17 +0100 From: Bruce Richardson To: dev@dpdk.org Date: Tue, 24 Jun 2014 01:23:03 +0100 Message-Id: <1403569384-16758-2-git-send-email-bruce.richardson@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1403569384-16758-1-git-send-email-bruce.richardson@intel.com> References: <1403569384-16758-1-git-send-email-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH 1/2] mk: overriding CC also overrides HOSTCC X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2014 00:23:03 -0000 when overriding the CC variable on the commandline, the HOSTCC value was remaining at "gcc", which caused errors on Free BSD10 when using a gcc as e.g. gcc48, without a binary just called "gcc". This change overrides HOSTCC when CC is overridden, which means that setting CC=gcc48, will now also set HOSTCC=gcc48, allowing the "testhost" app to compile on BSD10 Signed-off-by: Bruce Richardson --- mk/toolchain/gcc/rte.vars.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mk/toolchain/gcc/rte.vars.mk b/mk/toolchain/gcc/rte.vars.mk index 58faa39..39005db 100644 --- a/mk/toolchain/gcc/rte.vars.mk +++ b/mk/toolchain/gcc/rte.vars.mk @@ -53,7 +53,11 @@ STRIP = $(CROSS)strip READELF = $(CROSS)readelf GCOV = $(CROSS)gcov +ifeq ("$(origin CC)", "command line") +HOSTCC = $(CC) +else HOSTCC = gcc +endif HOSTAS = as TOOLCHAIN_ASFLAGS = -- 1.9.3