[Buildroot] GCC version detection in toolchain/gcc/Makefile.in
Bernhard Fischer
rep.dot.nop at gmail.com
Fri Mar 30 11:34:59 PDT 2007
On Thu, Mar 29, 2007 at 10:36:27AM -0400, Zachary P. Landau wrote:
>Hello,
>
>I think there may be a problem in the GCC version detection code
>inside of toolchain/gcc/Makefile.in, but I wanted to verify it with
>people before filing a bug. I am looking at the latest checkin of
>Makefile.in (revision 17836).
>
>Inside of that file, it uses the line: "ifeq ($(findstring
>3.4.,$(GCC_VERSION)),3.4.)" to detect gcc version 3.4.X. But then a
>few lines down, in a separate ifeq, it uses the line: "ifeq
>($(findstring 4.,$(GCC_VERSION)),4.)". I believe this is supposed to
>detect version "4.X.X" of GCC. But it also seems to match 3.4.X
>(because that also has '4.' in it.
>
>This caused an issue for me when trying to compile openssl with gcc
>3.4.6. The incorrect TARGET_SOFT_FLOAT option was being used because
>the "4." detection was overwriting the correct value detected a few
>lines above.
>
>Am I right that this is an issue, or am I missing something?
That sounds plausible, yes.
What do you suggest to distinguish between gcc version 4.4.9 and 3.4.6?
More information about the buildroot
mailing list