]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcc: check if target install name equals the full driver name
authorXinhui Yang <cyan@cyano.uk>
Tue, 11 Nov 2025 02:19:35 +0000 (10:19 +0800)
committerXi Ruoyao <xry111@xry111.site>
Thu, 20 Nov 2025 10:41:55 +0000 (18:41 +0800)
commit722bd6847643ae5d3f66af2a68cc83374730bee6
tree1e747001cffb31f87ca866f689b3ebd6e02c2682
parent240b502bb2ca89ab4e1ad9478e669edd0b59b9fa
gcc: check if target install name equals the full driver name

When a major version program suffix is specified, along with
--with-gcc-major-version-only, GCC tries to install $TRIPLE-gcc-tmp into
the destination BINDIR and link it to TRIPLE-gcc-SUFFIX. However this
executable is installed in the previous step, thus leaving the gcc-tmp
unmodified.

This is because when --program-suffix=15 (any major version) and
--with-gcc-major-version-only, $(version) will be the major version
number, thus making FULL_DRIVER_NAME and GCC_TARGET_INSTALL_NAME
identical to each other. We check if these two is identical and skip the
latter step if they are.

gcc/
PR bootstrap/105664
* Makefile.in (install-driver): detect name collision when
installing the driver program.

Signed-off-by: Xinhui Yang <cyan@cyano.uk>
gcc/Makefile.in