This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: [4.1/4.2/4.3]: Gcc failed to detect Linux linker version


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]