diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-01-09 06:43:11 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-01-09 06:51:51 -0800 |
commit | 50ad1254d5030d0804cbf89c758359ae202e8d55 (patch) | |
tree | d99205ba73874f43469734356f4f2d71ff8e428b /libiberty/aclocal.m4 | |
parent | a9fd212a2416406f8503efe9e449718d0becfcb2 (diff) | |
download | gdb-50ad1254d5030d0804cbf89c758359ae202e8d55.zip gdb-50ad1254d5030d0804cbf89c758359ae202e8d55.tar.gz gdb-50ad1254d5030d0804cbf89c758359ae202e8d55.tar.bz2 |
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.
Diffstat (limited to 'libiberty/aclocal.m4')
-rw-r--r-- | libiberty/aclocal.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libiberty/aclocal.m4 b/libiberty/aclocal.m4 index 34c0a5b..b2e54d9 100644 --- a/libiberty/aclocal.m4 +++ b/libiberty/aclocal.m4 @@ -1,6 +1,7 @@ sinclude(../config/acx.m4) sinclude(../config/cet.m4) sinclude(../config/enable.m4) +sinclude(../config/gcc-plugin.m4) sinclude(../config/no-executables.m4) sinclude(../config/override.m4) sinclude(../config/picflag.m4) |