[PATCH 0/2] Check if AR works with --plugin and rc
H.J. Lu
hjl.tools@gmail.com
Mon Jan 11 16:57:04 GMT 2021
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.
Tested:
1. Binutils build
2. ./src-release.sh gdb
3. ./src-release.sh binutils
with binutils 2.30.
H.J. Lu (2):
GCC: Check if AR works with --plugin and rc
Binutils: Check if AR works with --plugin and rc
bfd/configure | 13 ++++--
binutils/configure | 13 ++++--
config/gcc-plugin.m4 | 12 +++++
configure | 102 +++++++++++++++++++++++++++++++++++++++++++
gas/configure | 13 ++++--
gprof/configure | 13 ++++--
ld/configure | 13 ++++--
libctf/configure | 13 ++++--
libiberty/configure | 102 +++++++++++++++++++++++++++++++++++++++++++
libtool.m4 | 9 +++-
opcodes/configure | 13 ++++--
zlib/configure | 13 ++++--
12 files changed, 304 insertions(+), 25 deletions(-)
--
2.29.2
More information about the Binutils
mailing list