|
From: Christophe L. <chr...@st...> - 2011-11-17 11:39:47
|
On 17.11.2011 12:06, Bart Van Assche wrote: > On Wed, Nov 16, 2011 at 6:18 PM, Christophe Lyon<chr...@st...> wrote: >> I have noticed that the recently introduced way of checking GCC version can >> fail in some circumstances. For instance, I have an ARM GCC which is known >> as armv7-linux-gcc, and the current configure decides it's not OK. (Because >> the version reported is 7). > Does the second patch attached to > http://bugs.kde.org/show_bug.cgi?id=286384 work for you ? > > Bart. > No, it does not work because it maches the version number which is between braces, which is provided by --pkgversion= of GCC's configure script. The provider of GCC can choose an arbitrary string here. For instance, Code Sourcery's 2011.03 release prints: arm-none-eabi-gcc (Sourcery G++ Lite 2011.03-42) 4.5.2 And the above mentioned patch returns 2011.03-42. For GCC, the 'right' version number is the one after the string in braces. For Clang, I don't know. Christophe. |