diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-06-27 09:35:22 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-06-27 09:35:26 +0000 |
commit | 7919826b58cf42e498e21c7dab18485fabad7f56 (patch) | |
tree | 7103ed100a391230998acbcd36c9512618b21a7e /testing/john/gcc5-support.patch | |
parent | 876b1d5245005235d709e99e4bb18d54f8f31f44 (diff) | |
download | aports-7919826b58cf42e498e21c7dab18485fabad7f56.tar.bz2 aports-7919826b58cf42e498e21c7dab18485fabad7f56.tar.xz |
testing/john: new aport
Diffstat (limited to 'testing/john/gcc5-support.patch')
-rw-r--r-- | testing/john/gcc5-support.patch | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/testing/john/gcc5-support.patch b/testing/john/gcc5-support.patch new file mode 100644 index 0000000000..3105add4d3 --- /dev/null +++ b/testing/john/gcc5-support.patch @@ -0,0 +1,71 @@ +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]) |