From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id C4A17ADAF for ; Tue, 24 Feb 2015 11:50:51 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 24 Feb 2015 02:46:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,638,1418112000"; d="scan'208";a="670724334" Received: from bricha3-mobl3.ger.corp.intel.com ([10.243.20.32]) by fmsmga001.fm.intel.com with SMTP; 24 Feb 2015 02:50:47 -0800 Received: by (sSMTP sendmail emulation); Tue, 24 Feb 2015 10:50:46 +0025 Date: Tue, 24 Feb 2015 10:50:46 +0000 From: Bruce Richardson To: David Marchand Message-ID: <20150224105046.GC8416@bricha3-MOBL3> References: <7a06a1e8019a40d4175c6bc2e1d7e62cf956b291.1424261465.git.pmatilai@redhat.com> <1597878.lL4fhc8lIW@xps13> <54EC496C.7050200@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v2] mk: Rework gcc version detection to permit versions newer than 4.x 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 Feb 2015 10:50:53 -0000 On Tue, Feb 24, 2015 at 11:44:21AM +0100, David Marchand wrote: > On Tue, Feb 24, 2015 at 11:36 AM, Mcnamara, John > wrote: > > > > > > >> $ gcc -dumpversion > > > >>> 4.7 > > > >>> > > > Hum, how about something like always appending .0.0 to the gcc - > > > dumpversion then cut at 3 characters ? > > > > Hi, > > > > Or something like this in Sed or Perl within the $(shell) expansion: > > > > Well, we have no dependency on perl so far. > I would prefer we keep at just makefile and shell stuff. > > Olivier ? opinion ? > > > -- > David Marchand I think the suggestion of just appending .0.0 is the simplest option which should also work well. Regards, /Bruce