[dpdk-dev] [PATCH] mk: Rework gcc version detection to permit versions newer than 4.x

2015-02-20 Thread Panu Matilainen
On 02/20/2015 04:04 PM, Thomas Monjalon wrote: > Hi Panu, > > 2015-02-18 14:11, Panu Matilainen: >> Separately comparing major and minor versions becomes seriously clumsy >> when with major version changes, convert the entire version string into >> a numeric value (ie 4.6.0 becomes 460 and 5.0.0 be

[dpdk-dev] [PATCH] mk: Rework gcc version detection to permit versions newer than 4.x

2015-02-20 Thread Thomas Monjalon
Hi Panu, 2015-02-18 14:11, Panu Matilainen: > Separately comparing major and minor versions becomes seriously clumsy > when with major version changes, convert the entire version string into > a numeric value (ie 4.6.0 becomes 460 and 5.0.0 becomes 500) and use > that for comparisons. This simplif

[dpdk-dev] [PATCH] mk: Rework gcc version detection to permit versions newer than 4.x

2015-02-18 Thread Panu Matilainen
Separately comparing major and minor versions becomes seriously clumsy when with major version changes, convert the entire version string into a numeric value (ie 4.6.0 becomes 460 and 5.0.0 becomes 500) and use that for comparisons. This simplifies the comparisons and makes gcc 5.0 naturally recog