summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rwxr-xr-xconfigure4
-rw-r--r--configure.ac4
3 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 81593bc8f8..b9255d643c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
+ PR binutils/26766
+ * configure.ac:
+ * configure: Regenerated.
+
+2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
+
PR ld/27173
* configure: Regenerated.
* libtool.m4 (_LT_CMD_OLD_ARCHIVE): Check if AR works with
diff --git a/configure b/configure
index 5437ef12c7..25d2fc48c6 100755
--- a/configure
+++ b/configure
@@ -10241,6 +10241,10 @@ if test -n "$PLUGIN_OPTION"; then
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
fi
+else
+ if test "$enable_pgo_build" != "no"; then
+ as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
+ fi
fi
diff --git a/configure.ac b/configure.ac
index 9dd51c36e5..d39019d709 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3452,6 +3452,10 @@ if test -n "$PLUGIN_OPTION"; then
if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
fi
+else
+ if test "$enable_pgo_build" != "no"; then
+ AC_MSG_ERROR([AR with --plugin and rc is required for LTO build])
+ fi
fi
AC_SUBST(AR_PLUGIN_OPTION)
AC_SUBST(RANLIB_PLUGIN_OPTION)