lol

autoconf: Enable cross-compilation

authored by

Ben Gamari and committed by
Will Dietz
d625f181 4f3c8178

+45 -1
+43
pkgs/development/compilers/gcc/6/fix-objdump-check.patch
··· 1 + commit 4c38abe0967bad78dd6baa61c86923e4d4b346d3 2 + Author: Ben Gamari <ben@smart-cactus.org> 3 + Date: Sun Nov 5 13:14:19 2017 -0500 4 + 5 + Fix it 6 + 7 + diff --git a/config/gcc-plugin.m4 b/config/gcc-plugin.m4 8 + index 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,
+2 -1
pkgs/development/tools/misc/autoconf/default.nix
··· 8 8 sha256 = "113nlmidxy9kjr45kg9x3ngar4951mvag1js2a3j8nxcz34wxsv4"; 9 9 }; 10 10 11 - buildInputs = [ m4 perl ]; 11 + nativeBuildInputs = [ m4 perl ]; 12 + buildInputs = [ m4 ]; 12 13 13 14 # Work around a known issue in Cygwin. See 14 15 # http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/6822 for