c++tools: Fix up c++tools for --with-gcc-major-version-only
authorJakub Jelinek <jakub@redhat.com>
Thu, 17 Dec 2020 13:31:05 +0000 (14:31 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 17 Dec 2020 13:31:05 +0000 (14:31 +0100)
commit4e7e7c132619aa58a50edd38d25bd3f885e97d8a
tree9c8751d0b27c0f3e4cfe68ba56efded2b08a4c13
parent62cb9680e592057a49de66eac34da679338932f9
c++tools: Fix up c++tools for --with-gcc-major-version-only

Seems c++tools doesn't honor --with-gcc-major-version-only.
Our distro uses that flag and so everything is installed in
/usr/lib/gcc/<target>/11/...
/usr/libexec/gcc/<target>/11/...
except
/usr/libexec/gcc/<target>/11.0.0/g++-mapper-server

The following patch should fix that.

2020-12-17  Jakub Jelinek  <jakub@redhat.com>

* configure.ac: Add GCC_BASE_VER.
* Makefile.in (version): Remove variable.
(gcc_version): New variable.
(libexecsubdir): Use $(gcc_version) instead of $(version).
* configure: Regenerated.
c++tools/Makefile.in
c++tools/configure
c++tools/configure.ac