aboutsummaryrefslogtreecommitdiffstats
path: root/community/john/gcc5-support.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/john/gcc5-support.patch')
-rw-r--r--community/john/gcc5-support.patch71
1 files changed, 0 insertions, 71 deletions
diff --git a/community/john/gcc5-support.patch b/community/john/gcc5-support.patch
deleted file mode 100644
index 3105add4d3..0000000000
--- a/community/john/gcc5-support.patch
+++ /dev/null
@@ -1,71 +0,0 @@
-diff --git a/src/configure b/src/configure
-index 80653dc..1e62ce7 100755
---- a/src/configure
-+++ b/src/configure
-@@ -6165,6 +6165,53 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
- fi
-+ # Justified and Ancient (see #1093)
-+ if test "1" = 1; then :
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -std=gnu89" >&5
-+$as_echo_n "checking if $CC supports -std=gnu89... " >&6; }
-+fi
-+ ac_ext=c
-+ac_cpp='$CPP $CPPFLAGS'
-+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-+ac_compiler_gnu=$ac_cv_c_compiler_gnu
-+
-+ ac_saved_cflags="$CFLAGS"
-+ CFLAGS="-Werror -std=gnu89"
-+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-+/* end confdefs.h. */
-+
-+int
-+main ()
-+{
-+
-+ ;
-+ return 0;
-+}
-+_ACEOF
-+if ac_fn_c_try_compile "$LINENO"; then :
-+ if test "1" = 1; then :
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-+$as_echo "yes" >&6; }
-+fi
-+ CFLAGS_EX="$CFLAGS_EX -std=gnu89"
-+
-+else
-+ if test "1" = 1; then :
-+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-+$as_echo "no" >&6; }
-+fi
-+
-+fi
-+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-+ CFLAGS="$ac_saved_cflags"
-+ ac_ext=c
-+ac_cpp='$CPP $CPPFLAGS'
-+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-+ac_compiler_gnu=$ac_cv_c_compiler_gnu
-+
-+
-
- for i in "$CFLAGS_EX"; do
- jtr_list_add_dupe=0
-diff --git a/src/configure.ac b/src/configure.ac
-index 5a3b1c7..0ea18f3 100644
---- a/src/configure.ac
-+++ b/src/configure.ac
-@@ -200,6 +200,8 @@ fi
- JTR_FLAG_CHECK([-Wno-format-extra-args], 1)
- #JTR_FLAG_CHECK([-Wno-unneeded-internal-declaration], 1)
- AS_IF([test "x$JTR_FLAG_Q_CHECK_WORKS" = xyes], [JTR_FLAG_CHECK([-Qunused-arguments],1)])
-+ # Justified and Ancient (see #1093)
-+ JTR_FLAG_CHECK([-std=gnu89], 1)
- JTR_LIST_ADD(CFLAGS_EXTRA, ["$CFLAGS_EX"])
- ],[dnl
- AC_MSG_NOTICE([Unable to validate $CC command line arguments. CFLAGS may need to be passed to ./configure for proper build])