This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: [4.1/4.2/4.3]: Gcc failed to detect Linux linker version
On Fri, Sep 21, 2007 at 05:48:32PM +0200, Richard Guenther wrote:
> It doesn't handle
>
> > ld --version
> GNU ld (GNU Binutils) 2.17.50.20070726-12 (SUSE Linux)
>
> but the variant used in libstdc++v3/acinclude.m4 does:
>
> ldver=`$LD --version 2>/dev/null | head -1 | \
> sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*)
> \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
>
> it also looks simpler ;)
Sure, but gcc/configure* doesn't only want the ld major and minor
versions, but, if available, also the date.
Jakub