X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=libiberty%2Fconfigure.ac;h=9b451a4c61a0fc397ebe29a53e386a1cd855ec39;hb=f01e6568a892beb841da00fcb18556fe75e74e39;hp=a85ff25501adc5bfa576045cd652e81f09a182a4;hpb=20c4b12e937b20f0998bd25ad37c77145650e826;p=binutils-gdb.git diff --git a/libiberty/configure.ac b/libiberty/configure.ac index a85ff25501a..9b451a4c61a 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