summaryrefslogtreecommitdiff
path: root/security/beecrypt/patches/patch-acinclude.m4
blob: 32a2935c91a1e3d830a112f431e71839e1182c75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-acinclude.m4,v 1.1 2015/04/14 14:23:14 joerg Exp $

--- acinclude.m4.orig	2015-04-10 14:47:05.000000000 +0000
+++ acinclude.m4
@@ -904,7 +904,11 @@ EOF
 	AC_LANG_PUSH(C)
     AC_TRY_COMPILE([],[{}],[
       bc_cv_as_noexecstack=yes
-      bc_gnu_stack='.section .note.GNU-stack,"",@progbits; .previous'
+      if [ $bc_target_arch = arm ]; then
+        bc_gnu_stack='.section .note.GNU-stack,"",%progbits; .previous'
+      else
+        bc_gnu_stack='.section .note.GNU-stack,"",@progbits; .previous'
+      fi
       ],[
       CFLAGS=$CFLAGS_save
       CXXFLAGS=$CXXFLAGS_save