summaryrefslogtreecommitdiffstats
path: root/main/gmp/gmp-4.1.4-noexecstack.patch
blob: 093bec1a5dca978f0a4d076c04d1bd0af8766a45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
fixed executable stack

http://bugs.gentoo.org/115038

--- gmp-4.1.4/configure
+++ gmp-4.1.4/configure
@@ -21689,6 +21689,13 @@
 fi
 echo "')" >> $gmp_configm4
 echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
+# Gentoo hack
+case $host_os in
+	*linux*)
+		echo '.section .note.GNU-stack,"",%progbits' >> $gmp_configm4
+		echo '.previous' >> $gmp_configm4
+		;;
+esac
 
 # Create Makefiles
 # FIXME: Upcoming version of autoconf/automake may not like broken lines.