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
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Paolo Bonzini <bonzini at gnu dot org>, "H.J. Lu" <hjl at lucon dot org>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 13 Sep 2007 22:21:36 +0000 (UTC)
- Subject: Re: PATCH: [4.1/4.2/4.3]: Gcc failed to detect Linux linker version
- References: <20070913133019.GA21212@lucon.org> <46E943AF.6060202@gnu.org> <46E98537.4040806@codesourcery.com>
On Thu, 13 Sep 2007, Mark Mitchell wrote:
> (But, can we please stop making the GNU/Linux linker version numbers
> ever weirder? We seem to have a patch like this rather often...)
How about saying that if you use the GNU assembler or linker with 4.3 then
it must be at least version 2.18 (the current release)? Then you can
assume that the version number is the part after the last space on the
first line of --version output, as per the GNU Coding Standards.
(OK, 2.18 may be too recent to require for 4.3, and 2.17 doesn't have the
--version fixes, but the principle of declaring a global minimum version
remains.)
I don't really believe the statements in install.texi of the form "you
need binutils 2.11.2 or later" reflect the true requirements; I very much
doubt anything anywhere near that old gets much testing.
(Note that libstdc++-v3/acinclude.m4 has its own code to process linker
versions. In any case, it would seem a good idea for the code to be
shared.)
--
Joseph S. Myers
joseph@codesourcery.com