]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - ChangeLog
GCC: Check if AR works with --plugin and rc
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 12 Jan 2021 00:26:39 +0000 (16:26 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 12 Jan 2021 00:26:51 +0000 (16:26 -0800)
commit03c02f3116d75721f917c4155cefb18b940a43ff
tree36b5214bc5a69ce1860aef06581430a57ee9d063
parenteabdd87b2e8d20941d8bfe0b668d6ae4e5dd737f
GCC: Check if AR works with --plugin and rc

AR from older binutils doesn't work with --plugin and rc:

[hjl@gnu-cfl-2 bin]$ touch foo.c
[hjl@gnu-cfl-2 bin]$ ar --plugin /usr/libexec/gcc/x86_64-redhat-linux/10/liblto_plugin.so rc libfoo.a foo.c
[hjl@gnu-cfl-2 bin]$ ./ar --plugin /usr/libexec/gcc/x86_64-redhat-linux/10/liblto_plugin.so rc libfoo.a foo.c
./ar: no operation specified
[hjl@gnu-cfl-2 bin]$ ./ar --version
GNU ar (Linux/GNU Binutils) 2.29.51.0.1.20180112
Copyright (C) 2018 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.
[hjl@gnu-cfl-2 bin]$

Check if AR works with --plugin and rc before passing --plugin to AR and
RANLIB.

PR ld/27173
* configure: Regenerated.
* libtool.m4 (_LT_CMD_OLD_ARCHIVE): Check if AR works with
--plugin and rc before enabling --plugin.

config/

PR ld/27173
* gcc-plugin.m4 (GCC_PLUGIN_OPTION): Check if AR works with
--plugin and rc before enabling --plugin.

libiberty/

PR ld/27173
* configure: Regenerated.

zlib/

PR ld/27173
* configure: Regenerated.
ChangeLog
config/ChangeLog
config/gcc-plugin.m4
configure
libiberty/ChangeLog
libiberty/configure
libtool.m4
zlib/ChangeLog.bin-gdb
zlib/configure