logo

overlay

My (experimental) gentoo overlay

aircrack-ng-1.2-no-force-stack-protector.patch (2245B)


      1 From 58fe40daf3e082d9e63d689d795a3bbecf72fedb Mon Sep 17 00:00:00 2001
      2 From: Joseph Benden <joe@benden.us>
      3 Date: Mon, 16 Apr 2018 11:26:23 -0700
      4 Subject: [PATCH] autotools: The flag --without-opt should skip stack protector
      5  flags. (#1864)
      6 
      7 ---
      8  build/m4/aircrack_ng_compiler.m4 | 28 ++++++++++++++++------------
      9  1 file changed, 16 insertions(+), 12 deletions(-)
     10 
     11 diff --git a/build/m4/aircrack_ng_compiler.m4 b/build/m4/aircrack_ng_compiler.m4
     12 index 0fb19726..8a973dbf 100644
     13 --- a/build/m4/aircrack_ng_compiler.m4
     14 +++ b/build/m4/aircrack_ng_compiler.m4
     15 @@ -108,19 +108,23 @@ case "$ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor" in
     16              CYGWIN*|MSYS*|cygwin*|msys*)
     17                  ;;
     18              *)
     19 -                AS_IF([test "x$gcc_over49" = "xno"], [
     20 -                    AS_IF([test "x$gcc_over41" = "xyes"], [
     21 -                        AX_CHECK_COMPILE_FLAG([-fstack-protector], [
     22 -                            AX_APPEND_FLAG(-fstack-protector, [opt_[]_AC_LANG_ABBREV[]flags])
     23 -                        ])
     24 -                    ], [])
     25 -                ], [])
     26 +                case $with_opt in
     27 +                    yes | "")
     28 +                        AS_IF([test "x$gcc_over49" = "xno"], [
     29 +                            AS_IF([test "x$gcc_over41" = "xyes"], [
     30 +                                AX_CHECK_COMPILE_FLAG([-fstack-protector], [
     31 +                                    AX_APPEND_FLAG(-fstack-protector, [opt_[]_AC_LANG_ABBREV[]flags])
     32 +                                ])
     33 +                            ], [])
     34 +                        ], [])
     35  
     36 -                AS_IF([test "x$gcc_over49" = "xyes"], [
     37 -                    AX_CHECK_COMPILE_FLAG([-fstack-protector-strong], [
     38 -                        AX_APPEND_FLAG(-fstack-protector-strong, [opt_[]_AC_LANG_ABBREV[]flags])
     39 -                    ])
     40 -                ], [])
     41 +                        AS_IF([test "x$gcc_over49" = "xyes"], [
     42 +                            AX_CHECK_COMPILE_FLAG([-fstack-protector-strong], [
     43 +                                AX_APPEND_FLAG(-fstack-protector-strong, [opt_[]_AC_LANG_ABBREV[]flags])
     44 +                            ])
     45 +                        ], [])
     46 +                        ;;
     47 +                esac
     48                  ;;
     49          esac
     50          ;;