Subject: Re: [Boost-build] gcc visibility support patch
From: Philipp Thomas (pth_at_[hidden])
Date: 2010-06-16 11:33:15
* Jürgen Hunold (juergen.hunold_at_[hidden]) [20100615 14:38]:
> I echoed the version and got full "4.4.3" which is Major.Minor.Patch.
> And manually checked it again now.
Then Ubuntu patches the GCC sources to do so. The vanilla sources only give
major.minor because the output of -dumpversion gives the version under which
you'll find the version specific compiler stuff, i.e. the subdir in
> That would "gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3"
If the output of 'gcc --version' doesn't contain the copyright and legal
notice I doubt that the GCC folks will like this change.
On openSUSE 'gcc --version' will produce something like
gcc (SUSE Linux) 4.5.0 20100420 [gcc-4_5-branch revision 158562]
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> I doubt that we want Boost.Build behaviour depending on "-4ubuntu5".
Of cause we don't, that's why I wrote 'parse the output' :) You'd have to
further parse/split the output to get the full version. There currently is
no gcc option that will give you the full version across all platforms that
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk