]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
binutils: Pass target plugin file to target ar/nm/ranlib
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 26 Sep 2025 00:03:01 +0000 (08:03 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 27 Sep 2025 03:34:45 +0000 (11:34 +0800)
commit77c74294bfc5005204a2de3cc64bbdb2f877be29
treea7d194640ef0f82366624643a3851d3de06cb0e7
parent991b1443d376b9acbcd0c9e164b20e527f0e06cb
binutils: Pass target plugin file to target ar/nm/ranlib

There are 2 kinds of binutils tests:

1. Tests of binutils object files and libraries using the build tools,
like CC, AR, NM and RANLIB.
2. Tests of binutils programs as the target tools, like CC_FOR_TARGET,
AR_FOR_TARGET, NM_FOR_TARGET and RANLIB_FOR_TARGET.

Set AR_PLUGIN_OPTION_FOR_TARGET, NM_PLUGIN_OPTION_FOR_TARGET and
RANLIB_PLUGIN_OPTION_FOR_TARGET to the target compiler plugin file for
target ar/nm/ranlib.

PR binutils/33483
* Makefile.in: Regenerated.
* configure: Likewise.
* Makefile.tpl (AR_FOR_TARGET): Add @AR_PLUGIN_OPTION_FOR_TARGET@.
(NM_FOR_TARGET): Add @NM_PLUGIN_OPTION_FOR_TARGET@.
(RANLIB_FOR_TARGET): Add @RANLIB_PLUGIN_OPTION_FOR_TARGET@.
* configure.ac: Use CLANG_PLUGIN_FILE_FOR_TARGET and
GCC_PLUGIN_OPTION_FOR_TARGET to set AR_PLUGIN_OPTION_FOR_TARGET,
NM_PLUGIN_OPTION_FOR_TARGET and RANLIB_PLUGIN_OPTION_FOR_TARGET.
AC_SUBST AR_PLUGIN_OPTION_FOR_TARGET, NM_PLUGIN_OPTION_FOR_TARGET
and RANLIB_PLUGIN_OPTION_FOR_TARGET.

config/

PR binutils/33483
* clang-plugin.m4 (CLANG_PLUGIN_FILE_FOR_TARGET): New.
* gcc-plugin.m4 (GCC_PLUGIN_OPTION_FOR_TARGET): Likewise.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Makefile.in
Makefile.tpl
config/clang-plugin.m4
config/gcc-plugin.m4
configure
configure.ac