diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2022-01-13 05:43:05 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2022-01-13 05:48:47 -0800 |
commit | 268533381f80d18698fea9b15f942427f1d34cba (patch) | |
tree | 86c20a8cbf98654b87fabdad2d8ea968daf99540 /libiberty/Makefile.in | |
parent | 2f83249c13d86065b4c7cdb198ea871017b4bba1 (diff) | |
download | gdb-268533381f80d18698fea9b15f942427f1d34cba.zip gdb-268533381f80d18698fea9b15f942427f1d34cba.tar.gz gdb-268533381f80d18698fea9b15f942427f1d34cba.tar.bz2 |
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.
Diffstat (limited to 'libiberty/Makefile.in')
-rw-r--r-- | libiberty/Makefile.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in index 1b17c2e..abef3c4 100644 --- a/libiberty/Makefile.in +++ b/libiberty/Makefile.in @@ -50,13 +50,13 @@ mkinstalldirs = $(SHELL) $(libiberty_topdir)/mkinstalldirs # Some compilers can't handle cc -c blah.c -o foo/blah.o. OUTPUT_OPTION = @OUTPUT_OPTION@ -AR = @AR@ +AR = @AR@ @AR_PLUGIN_OPTION@ AR_FLAGS = rc CC = @CC@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ -RANLIB = @RANLIB@ +RANLIB = @RANLIB@ @RANLIB_PLUGIN_OPTION@ MAKEINFO = @MAKEINFO@ PERL = @PERL@ @@ -507,6 +507,7 @@ aclocal_deps = \ $(srcdir)/../config/acx.m4 \ $(srcdir)/../config/cet.m4 \ $(srcdir)/../config/enable.m4 \ + $(srcdir)/../config/gcc-plugin.m4 \ $(srcdir)/../config/no-executables.m4 \ $(srcdir)/../config/override.m4 \ $(srcdir)/../config/picflag.m4 \ |