aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@baylibre.com>2024-03-10 23:58:16 +0100
committerThomas Schwinge <tschwinge@baylibre.com>2024-03-11 00:13:43 +0100
commitee90365c80a7cabb43b2c1b95495e9a43fc1f54c (patch)
treeb50782bb097b3a16b1e9afbecd9c3289874d841f /gcc
parentd0bf4b8fcb3e9b39d376f34c7f97591a9462ce63 (diff)
parent126f707efbb5184178701cbdc753a10fd831374e (diff)
downloadgcc-ee90365c80a7cabb43b2c1b95495e9a43fc1f54c.zip
gcc-ee90365c80a7cabb43b2c1b95495e9a43fc1f54c.tar.gz
gcc-ee90365c80a7cabb43b2c1b95495e9a43fc1f54c.tar.bz2
Merge commit '126f707efbb5184178701cbdc753a10fd831374e' into HEAD
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/configure27
1 files changed, 25 insertions, 2 deletions
diff --git a/gcc/configure b/gcc/configure
index 88c7db6..68a3835 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -14913,6 +14913,19 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown
+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
+
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
@@ -15006,6 +15019,11 @@ else
fi
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
@@ -15210,6 +15228,11 @@ else
fi
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
@@ -19864,7 +19887,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 19867 "configure"
+#line 19890 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -19970,7 +19993,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 19973 "configure"
+#line 19996 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H