···11+commit 4c38abe0967bad78dd6baa61c86923e4d4b346d3
22+Author: Ben Gamari <ben@smart-cactus.org>
33+Date: Sun Nov 5 13:14:19 2017 -0500
44+55+ Fix it
66+77+diff --git a/config/gcc-plugin.m4 b/config/gcc-plugin.m4
88+index dd06a58..f4435b8 100644
99+--- a/config/gcc-plugin.m4
1010++++ b/config/gcc-plugin.m4
1111+@@ -13,6 +13,32 @@ dnl the same distribution terms as the rest of that program.
1212+ # Sets the shell variables enable_plugin and pluginlibs.
1313+ AC_DEFUN([GCC_ENABLE_PLUGINS],
1414+ [# Check for plugin support
1515++
1616++ # Figure out what objdump we will be using.
1717++ AS_VAR_SET_IF(gcc_cv_objdump,, [
1818++ if test -f $gcc_cv_binutils_srcdir/configure.ac \
1919++ && test -f ../binutils/Makefile \
2020++ && test x$build = x$host; then
2121++ # Single tree build which includes binutils.
2222++ gcc_cv_objdump=../binutils/objdump$build_exeext
2323++ elif test -x objdump$build_exeext; then
2424++ gcc_cv_objdump=./objdump$build_exeext
2525++ elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $[2] ); then
2626++ gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
2727++ else
2828++ AC_PATH_PROG(gcc_cv_objdump, $OBJDUMP_FOR_TARGET)
2929++ fi])
3030++
3131++ AC_MSG_CHECKING(what objdump to use)
3232++ if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
3333++ # Single tree build which includes binutils.
3434++ AC_MSG_RESULT(newly built objdump)
3535++ elif test x$gcc_cv_objdump = x; then
3636++ AC_MSG_RESULT(not found)
3737++ else
3838++ AC_MSG_RESULT($gcc_cv_objdump)
3939++ fi
4040++
4141+ AC_ARG_ENABLE(plugin,
4242+ [AS_HELP_STRING([--enable-plugin], [enable plugin support])],
4343+ enable_plugin=$enableval,
+2-1
pkgs/development/tools/misc/autoconf/default.nix
···88 sha256 = "113nlmidxy9kjr45kg9x3ngar4951mvag1js2a3j8nxcz34wxsv4";
99 };
10101111- buildInputs = [ m4 perl ];
1111+ nativeBuildInputs = [ m4 perl ];
1212+ buildInputs = [ m4 ];
12131314 # Work around a known issue in Cygwin. See
1415 # http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/6822 for