1commit 4c38abe0967bad78dd6baa61c86923e4d4b346d3
2Author: Ben Gamari <ben@smart-cactus.org>
3Date: Sun Nov 5 13:14:19 2017 -0500
4
5 Fix it
6
7diff --git a/config/gcc-plugin.m4 b/config/gcc-plugin.m4
8index dd06a58..f4435b8 100644
9--- a/config/gcc-plugin.m4
10+++ b/config/gcc-plugin.m4
11@@ -13,6 +13,32 @@ dnl the same distribution terms as the rest of that program.
12 # Sets the shell variables enable_plugin and pluginlibs.
13 AC_DEFUN([GCC_ENABLE_PLUGINS],
14 [# Check for plugin support
15+
16+ # Figure out what objdump we will be using.
17+ AS_VAR_SET_IF(gcc_cv_objdump,, [
18+ if test -f $gcc_cv_binutils_srcdir/configure.ac \
19+ && test -f ../binutils/Makefile \
20+ && test x$build = x$host; then
21+ # Single tree build which includes binutils.
22+ gcc_cv_objdump=../binutils/objdump$build_exeext
23+ elif test -x objdump$build_exeext; then
24+ gcc_cv_objdump=./objdump$build_exeext
25+ elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $[2] ); then
26+ gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
27+ else
28+ AC_PATH_PROG(gcc_cv_objdump, $OBJDUMP_FOR_TARGET)
29+ fi])
30+
31+ AC_MSG_CHECKING(what objdump to use)
32+ if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
33+ # Single tree build which includes binutils.
34+ AC_MSG_RESULT(newly built objdump)
35+ elif test x$gcc_cv_objdump = x; then
36+ AC_MSG_RESULT(not found)
37+ else
38+ AC_MSG_RESULT($gcc_cv_objdump)
39+ fi
40+
41 AC_ARG_ENABLE(plugin,
42 [AS_HELP_STRING([--enable-plugin], [enable plugin support])],
43 enable_plugin=$enableval,