binuitils: Check if AR is usable for LTO build
[deliverable/binutils-gdb.git] / configure
index 5437ef12c72f08a5811ab2ad8444c31b59669ba0..25d2fc48c66b89c0cf977948edf7083ac4456653 100755 (executable)
--- 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
 
 
This page took 0.036614 seconds and 4 git commands to generate.