diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-12-15 20:45:58 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-12-15 20:45:58 -0800 |
commit | ab18659afc054434cef4d4757a3519f1100adc52 (patch) | |
tree | f93a5c5823b4df35d43dd5e81c6c24e38e997512 /libtool.m4 | |
parent | e1f8c14b9a0387e2beffeee002c56164166a265b (diff) | |
download | gcc-ab18659afc054434cef4d4757a3519f1100adc52.tar.gz |
Revert "Sync with binutils: GCC: Pass --plugin to AR and RANLIB"
This reverts commit bf8cdd35117dea2049abbeebcdf14de11b323ef7.
Diffstat (limited to 'libtool.m4')
-rw-r--r-- | libtool.m4 | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/libtool.m4 b/libtool.m4 index efa62bfcbf0..17f8e5f3074 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -1325,26 +1325,8 @@ need_locks="$enable_libtool_lock" # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], -[plugin_option= -plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" -for plugin in $plugin_names; do - plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` - if test x$plugin_so = x$plugin; then - plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` - fi - if test x$plugin_so != x$plugin; then - plugin_option="--plugin $plugin_so" - break - fi -done - -AC_CHECK_TOOL(AR, ar, false) +[AC_CHECK_TOOL(AR, ar, false) test -z "$AR" && AR=ar -if test -n "$plugin_option"; then - if $AR --help 2>&1 | grep -q "\--plugin"; then - AR="$AR $plugin_option" - fi -fi test -z "$AR_FLAGS" && AR_FLAGS=cru _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1]) @@ -1355,11 +1337,6 @@ _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: -if test -n "$plugin_option" && test "$RANLIB" != ":"; then - if $RANLIB --help 2>&1 | grep -q "\--plugin"; then - RANLIB="$RANLIB $plugin_option" - fi -fi _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) |