diff options
author | Nick Clifton <nickc@redhat.com> | 2021-07-05 16:16:38 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-07-05 16:21:42 +0100 |
commit | c919d6be44913ed52d91c203e87e529ee17de805 (patch) | |
tree | b49acbce9e226a7b751b93adf9b9519ac9185f06 /libiberty/configure.ac | |
parent | 6e0dfbf420ae6ac321074c0051dcfd6a5a4d0f7c (diff) | |
download | gdb-c919d6be44913ed52d91c203e87e529ee17de805.zip gdb-c919d6be44913ed52d91c203e87e529ee17de805.tar.gz gdb-c919d6be44913ed52d91c203e87e529ee17de805.tar.bz2 |
Restore the libiberty component of commit 50ad1254d5030d0804cbf89c758359ae202e8d55.
This commit has not yet been applied to the master sources in the gcc repository.
It was submitted here: https://gcc.gnu.org/pipermail/gcc-patches/2021-July/574405.html
The commit allows options to be set for the AR and RANLIB programs used when building libiberty, which in turn allows building with LTO enabled.
Diffstat (limited to 'libiberty/configure.ac')
-rw-r--r-- | libiberty/configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libiberty/configure.ac b/libiberty/configure.ac index a85ff25..9b451a4 100644 --- a/libiberty/configure.ac +++ b/libiberty/configure.ac @@ -108,6 +108,18 @@ dnl to call AC_CHECK_PROG. AC_CHECK_TOOL(AR, ar) AC_CHECK_TOOL(RANLIB, ranlib, :) +GCC_PLUGIN_OPTION(PLUGIN_OPTION) +if test -n "$PLUGIN_OPTION"; then + if $AR --help 2>&1 | grep -q "\--plugin"; then + AR_PLUGIN_OPTION="$PLUGIN_OPTION" + AC_SUBST(AR_PLUGIN_OPTION) + fi + if $RANLIB --help 2>&1 | grep -q "\--plugin"; then + RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION" + AC_SUBST(RANLIB_PLUGIN_OPTION) + fi +fi + dnl When switching to automake, replace the following with AM_ENABLE_MULTILIB. # Add --enable-multilib to configure. # Default to --enable-multilib |