From 07b54aead520493cf7e207884931d0ab111f8c69 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Feb 17 2017 16:17:34 +0000 Subject: make configure.ac recognize recent versions of GCC --- diff --git a/elinks-0.12pre6-recent-gcc-versions.patch b/elinks-0.12pre6-recent-gcc-versions.patch new file mode 100644 index 0000000..d1da23d --- /dev/null +++ b/elinks-0.12pre6-recent-gcc-versions.patch @@ -0,0 +1,25 @@ +From a73e1ecfbfbc42bfc4798a98a4afd90bd35eb7f0 Mon Sep 17 00:00:00 2001 +From: Kamil Dudka +Date: Fri, 17 Feb 2017 16:21:48 +0100 +Subject: [PATCH] configure.in: recognize recent versions of GCC + +--- + configure.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.in b/configure.in +index 6bcfeec..28c685d 100644 +--- a/configure.in ++++ b/configure.in +@@ -1588,7 +1588,7 @@ if test "x$ac_cv_c_compiler_gnu" = "xyes"; then + # alternative is just too ugly. Thanks gcc guys!! ;) + CFLAGS="$CFLAGS -fno-strict-aliasing" + ;; +- 4.*) ++ 4.*|5.*|6.*|7) + # Do not show warnings related to (char * | unsigned char *) type + # difference. + CFLAGS="$CFLAGS -fno-strict-aliasing -Wno-pointer-sign" +-- +2.11.1 + diff --git a/elinks.spec b/elinks.spec index 918b149..c892701 100644 --- a/elinks.spec +++ b/elinks.spec @@ -72,6 +72,9 @@ Patch16: elinks-0.12pre6-lua51.patch # add support for GNU Libidn2, patch by Robert Scheck (#1098789) Patch17: elinks-0.12pre6-libidn2.patch +# make configure.ac recognize recent versions of GCC +Patch18: elinks-0.12pre6-recent-gcc-versions.patch + # drop disablement of TLS1.0 on second attempt to connect Patch19: elinks-0.12pre6-openssl11.patch @@ -163,6 +166,7 @@ exit 0 %changelog * Fri Feb 17 2017 Kamil Dudka - 0.12-0.51.pre6 +- make configure.ac recognize recent versions of GCC - apply patches automatically to ease maintenance * Fri Feb 17 2017 Tomáš Mráz - 0.12-0.50.pre6