[Buildroot] GCC version detection in toolchain/gcc/Makefile.in

Zachary P. Landau kapheine at gmail.com
Mon Apr 2 13:50:46 UTC 2007


> > That sounds plausible, yes.
> > What do you suggest to distinguish between gcc version 4.4.9 and
> > 3.4.6?
>
> Does make accept the '^' character for start of string/line?
>
> With grep you can do this:
>
>  $ echo 3.4.1 | grep "4.1"
>  3.4.1
>  $
>  $ echo 3.4.1 | grep "^4.1"

I tried that initially, but it doesn't seem to work.  And looking at
the documentation for findstring, it doesn't mention any sort of
regular expression support.

-- 
Zachary P. Landau <kapheine at gmail.com>



More information about the buildroot mailing list