Reapply libiberty: Pass --plugin to AR and RANLIB
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 13 Jan 2022 13:43:05 +0000 (05:43 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 13 Jan 2022 13:48:47 +0000 (05:48 -0800)
commit268533381f80d18698fea9b15f942427f1d34cba
tree86c20a8cbf98654b87fabdad2d8ea968daf99540
parent2f83249c13d86065b4c7cdb198ea871017b4bba1
Reapply libiberty: Pass --plugin to AR and RANLIB

Reapply the patch to detect GCC LTO plugin used for libiberty build to
support LTO build in 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: Regenerate.
libiberty/Makefile.in
libiberty/aclocal.m4
libiberty/configure
libiberty/configure.ac