[PATCH 1/3] GCC: Pass --plugin to AR and RANLIB
authorMatthias Klose <doko@debian.org>
Wed, 23 Dec 2020 08:38:22 +0000 (08:38 +0000)
committerMatthias Klose <doko@debian.org>
Wed, 23 Dec 2020 08:38:22 +0000 (08:38 +0000)
commitced311022ddc79fd1baea05e039741bd2c3d76d2
treeebede1c0a25357a8266b3b1ce0dafebc873f4682
parentda0bf25a274edb87c80863db9b7c5841ab4f6521
[PATCH 1/3] GCC: Pass --plugin to AR and RANLIB

Detect GCC LTO plugin.  Pass --plugin to AR and RANLIB to support LTO
build.

* Makefile.tpl (AR): Add @AR_PLUGIN_OPTION@
(RANLIB): Add @RANLIB_PLUGIN_OPTION@.
* configure.ac: Include config/gcc-plugin.m4.
AC_SUBST AR_PLUGIN_OPTION and RANLIB_PLUGIN_OPTION.
* libtool.m4 (_LT_CMD_OLD_ARCHIVE): Pass --plugin to AR and
RANLIB if possible.
* Makefile.in: Regenerated.
* configure: Likewise.

config/

* gcc-plugin.m4 (GCC_PLUGIN_OPTION): New.

libiberty/

* Makefile.in (AR): Add @AR_PLUGIN_OPTION@
(RANLIB): Add @RANLIB_PLUGIN_OPTION@.
(configure_deps): Depend on ../config/gcc-plugin.m4.
* aclocal.m4: Include ../config/gcc-plugin.m4.
* configure.ac: AC_SUBST AR_PLUGIN_OPTION and
RANLIB_PLUGIN_OPTION.
* configure: Regenerated.

zlib/

* configure: Regenerated.

Gbp-Pq: Name pgo+lto-1.diff
Makefile.in
Makefile.tpl
config/gcc-plugin.m4
configure
configure.ac
libiberty/Makefile.in
libiberty/aclocal.m4
libiberty/configure
libiberty/configure.ac
libtool.m4
zlib/configure