From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH v2] mk: Rework gcc version detection to permit versions newer than 4.x Date: Tue, 24 Feb 2015 10:50:46 +0000 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 Cc: "dev-VfR2kkLFssw@public.gmane.org" To: David Marchand Return-path: Content-Disposition: inline In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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