openbsd-ports/devel/mingw/patches/patch_binutils-2.20.1-configure
espie e72635a326 fix mingw's fork-bomb.
Turns out you need to name the compiler gcc for things to work out, BUT
clang never knows how to compile ada ANYWAY, so it *will* turn to gcc to
try to compile it.

*however* it calls gcc by name, so in this case, it calls... itself recursively
until it goes boom.

Plain disable the ada test..
2018-07-26 12:58:16 +00:00

14 lines
625 B
Plaintext

--- binutils-2.20.1/configure.orig Thu Jul 26 09:46:12 2018
+++ binutils-2.20.1/configure Thu Jul 26 09:46:59 2018
@@ -4959,10 +4959,6 @@ acx_cv_cc_gcc_supports_ada=no
# Other compilers, like HP Tru64 UNIX cc, exit successfully when
# given a .adb file, but produce no object file. So we must check
# if an object file was really produced to guard against this.
-errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
-if test x"$errors" = x && test -f conftest.$ac_objext; then
- acx_cv_cc_gcc_supports_ada=yes
-fi
rm -f conftest.*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5