void-packages/srcpkgs/perl/patches/drop_fstack_protector.diff
Juan RP 05f5b6e455 perl: update to 5.20.2 and make the soname versioned (#871).
- Merged some patches from Gentoo for misc fixes/tweaks and versioned soname.
- Update common/shlibs with libperl.so.5.20 soname.
2015-02-15 13:49:17 +01:00

66 lines
1.6 KiB
Diff

From 423890b1db83fce87d1283293a3d207e8f18aff4 Mon Sep 17 00:00:00 2001
From: Vladimir Smirnov <civil@gentoo.org>
Date: Mon, 19 May 2014 19:44:44 +0400
Subject: [PATCH] Don't force -fstack-protector on everyone
Bug-Gentoo: https://bugs.gentoo.org/348557
Patch-Name: gentoo/drop_fstack_protector.diff
Original by Torsten Veller, ported to perl 5.20
---
Configure | 24 ------------------------
1 file changed, 24 deletions(-)
diff --git a/Configure b/Configure
index 293ef61..b221390 100755
--- Configure
+++ Configure
@@ -5364,12 +5364,6 @@ default|recommended)
# is to add the flag to the flags passed to the compiler at link time,
# as that way the compiler can do the right implementation dependant
# thing. (NWC)
- case "$gccversion" in
- ?*) set stack-protector -fstack-protector
- eval $checkccflag
- ;;
- esac
- ;;
esac
case "$mips_type" in
@@ -5507,15 +5501,6 @@ case "$ldflags" in
;;
*) dflt="$ldflags";;
esac
-# See note above about -fstack-protector
-case "$ccflags" in
-*-fstack-protector*)
- case "$dflt" in
- *-fstack-protector*) ;; # Don't add it again
- *) dflt="$dflt -fstack-protector" ;;
- esac
- ;;
-esac
: Try to guess additional flags to pick up local libraries.
for thislibdir in $libpth; do
@@ -8292,15 +8277,6 @@ EOM
''|' ') dflt='none' ;;
esac
- case "$ldflags" in
- *-fstack-protector*)
- case "$dflt" in
- *-fstack-protector*) ;; # Don't add it again
- *) dflt="$dflt -fstack-protector" ;;
- esac
- ;;
- esac
-
rp="Any special flags to pass to $ld to create a dynamically loaded library?"
. ./myread
case "$ans" in
--
1.9.3