[PATCH 1/3] GCC: Pass --plugin to AR and RANLIB
authorMatthias Klose <doko@debian.org>
Sat, 20 Feb 2021 15:38:30 +0000 (15:38 +0000)
committerMatthias Klose <doko@debian.org>
Sat, 20 Feb 2021 15:38:30 +0000 (15:38 +0000)
commita64f59f431aaf766b7efd6fc67a70d48a737982b
tree63c2ba6a85c0962bb44173f0009a2b873775959b
parentfa5d5b14e1af8c548cf60889607c8718201b3120
[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