Hi,

In Gcc-7, a new compile time option has been introduced:
--with-gcc-major-version-only
with the effect of having only the major version in directory names.
But it has also the effect that "gcc -dumpversion" only shows
the major version. For example, on Debian unstable:
----
$ gcc -dumpversion
8
----
There is a new command line switch, introduced also for
Gcc-7: -dumpfullversion. For example:
----
$ gcc -dumpfullversion
8.3.0
----

But for versions less than 7, gcc -dumpversion returns an error.

I am not sure we would want to change our "version-check.sh"
script, since the major version is enough (if greater than 7)
for knowing whether the version is greater than the minimal one.

But if we want, the following command always returns the full
version, and no errors, whatever gcc's version is:
----
$ gcc -dumpfullversion -dumpversion
----
(in this order). Will do that for jhalfs...

Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to