aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-01-11 16:37:03 -0800
committerH.J. Lu <hjl.tools@gmail.com>2021-01-11 16:37:13 -0800
commit44124a46839b3563e448edfd013c6faa6a8b1642 (patch)
treef040b1b94a2609ee7874b8076cb79bb3540f9e8e /configure.ac
parent83b33c6cb90db6c110bff0d5024713e8af747005 (diff)
downloadgdb-44124a46839b3563e448edfd013c6faa6a8b1642.zip
gdb-44124a46839b3563e448edfd013c6faa6a8b1642.tar.gz
gdb-44124a46839b3563e448edfd013c6faa6a8b1642.tar.bz2
binuitils: Check if AR is usable for LTO build
Check if AR is usable for LTO build with --enable-pgo-build=lto: checking for -plugin option... ar: no operation specified Failed: ar --plugin /usr/gcc-11.0.0-x32/libexec/gcc/x86_64-pc-linux-gnu/11.0.0/liblto_plugin.so rc no configure: error: AR with --plugin and rc is required for LTO build instead of build failure later. PR binutils/26766 * configure.ac: * configure: Regenerated.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9dd51c3..d39019d 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)