summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl-5.12.3/native-ssp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.12.3/native-ssp.patch')
-rw-r--r--meta/recipes-devtools/perl/perl-5.12.3/native-ssp.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.12.3/native-ssp.patch b/meta/recipes-devtools/perl/perl-5.12.3/native-ssp.patch
new file mode 100644
index 0000000000..e1e6f08735
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl-5.12.3/native-ssp.patch
@@ -0,0 +1,16 @@
1Upstream-Status:Inappropriate [embedded specific]
2
3Fix for compiling with ssp enabled gcc:
4See http://bugs.openembedded.net/show_bug.cgi?id=1980
5
6diff -Naur perl-5.8.7.orig/cflags.SH perl-5.8.7/cflags.SH
7--- perl-5.8.7.orig/cflags.SH 2002-09-30 10:59:07.000000000 +0000
8+++ perl-5.8.7/cflags.SH 2005-10-02 04:08:39.000000000 +0000
9@@ -165,6 +165,8 @@
10 esac
11
12 : Can we perhaps use $ansi2knr here
13+ [[ $file == regcomp ]] && export ccflags="${ccflags} -fno-stack-protector"
14+ [[ $file == regexec ]] && export ccflags="${ccflags} -fno-stack-protector"
15 echo "$cc -c -DPERL_CORE $ccflags $optimize $warn"
16 eval "$also "'"$cc -DPERL_CORE -c $ccflags $optimize $warn"'