From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ee0-f48.google.com (mail-ee0-f48.google.com [74.125.83.48]) by dpdk.org (Postfix) with ESMTP id 361AF4BFE for ; Wed, 20 Mar 2013 17:06:42 +0100 (CET) Received: by mail-ee0-f48.google.com with SMTP id t10so1175028eei.21 for ; Wed, 20 Mar 2013 09:05:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:x-gm-message-state; bh=o/3p/RyoM2IHcTHHEFQyeJu5cvoc10M1SFlMGhV2tsc=; b=XXCPyZlwpq8UVWhBL9fSZ1+23YOyoMkd5tmdpnayixfaqwCr3tupreCug9T+SJOxbE 77kfX1bvXSU3GGKIyKtRAwXcuMiIFPZJorGz+ujWHwStuXaE+67bPUHa7NRvQgmtEgiM 87VqYTEx7cNpWArio2b7rvxdntaACA/6TBzONL3LdUV68I9lvgUWkKICKGee2qAWDaal TpappXEh0w2ixHNIvpl2CV3XWCgQDI3Td9TB/es8FeZSUVaYisKXSOwuihzLaqbuRbY9 Ug/OnXzPNXoke3guYM4/23RtEz9BkFTWiuhv5RKJxncsOLJ/sNZ+ase8KpBHbVEgx405 mUww== X-Received: by 10.14.173.196 with SMTP id v44mr72648203eel.29.1363795540285; Wed, 20 Mar 2013 09:05:40 -0700 (PDT) Received: from 6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPS id u44sm3451202eel.7.2013.03.20.09.05.37 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 20 Mar 2013 09:05:38 -0700 (PDT) Received: by 6wind.com (sSMTP sendmail emulation); Wed, 20 Mar 2013 17:05:36 +0100 From: Thomas Monjalon To: dev@dpdk.org Date: Wed, 20 Mar 2013 17:04:49 +0100 Message-Id: X-Mailer: git-send-email 1.7.2.5 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQlr0ZB4Q5GhG0HVQ8i/zRbndKQ6BRgM161XQkMfREaHTUEOr3fvblrDargnKA9wz4kk8heT Subject: [dpdk-dev] [PATCH 01/22] mk: use $CC to detect toolchain version 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: Wed, 20 Mar 2013 16:06:42 -0000 From: Samuel Gauthier Using gcc is wrong, we should use the cross gcc to detect the version of gcc. Acked-by: Thomas Monjalon Signed-off-by: Samuel Gauthier --- mk/toolchain/gcc/rte.toolchain-compat.mk | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mk/toolchain/gcc/rte.toolchain-compat.mk b/mk/toolchain/gcc/rte.toolchain-compat.mk index 4e65122..2e05ecb 100644 --- a/mk/toolchain/gcc/rte.toolchain-compat.mk +++ b/mk/toolchain/gcc/rte.toolchain-compat.mk @@ -40,7 +40,7 @@ #find out GCC version -GCC_MAJOR_VERSION = $(shell gcc -dumpversion | cut -f1 -d.) +GCC_MAJOR_VERSION = $(shell $(CC) -dumpversion | cut -f1 -d.) # if GCC is not 4.x ifneq ($(GCC_MAJOR_VERSION),4) @@ -49,7 +49,7 @@ $(warning You are not using GCC 4.x. This is neither supported, nor tested.) else - GCC_MINOR_VERSION = $(shell gcc -dumpversion | cut -f2 -d.) + GCC_MINOR_VERSION = $(shell $(CC) -dumpversion | cut -f2 -d.) # GCC graceful degradation # GCC 4.2.x - added support for generic target -- 1.7.2.5