From b8a0dbd784a9e838c3e6735d51bf76a61a63d8e4 Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Tue, 11 Jun 2013 13:49:19 +0200 Subject: dpkg-buildflags: Do not set -fstack-protector on arm64 The flag is not yet supported there. Closes: #711936 [guillem@debian.org: Update comment. ] Signed-off-by: Guillem Jover --- scripts/Dpkg/Vendor/Debian.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/Dpkg') diff --git a/scripts/Dpkg/Vendor/Debian.pm b/scripts/Dpkg/Vendor/Debian.pm index 269e1c98e..3f3022513 100644 --- a/scripts/Dpkg/Vendor/Debian.pm +++ b/scripts/Dpkg/Vendor/Debian.pm @@ -122,8 +122,8 @@ sub add_hardening_flags { # (#574716). $use_feature{pie} = 0; } - if ($cpu =~ /^(ia64|alpha|mips|mipsel|hppa)$/ or $arch eq 'arm') { - # Stack protector disabled on ia64, alpha, mips, mipsel, hppa. + if ($cpu =~ /^(ia64|alpha|mips|mipsel|hppa|arm64)$/ or $arch eq 'arm') { + # Stack protector disabled on ia64, alpha, arm64, mips, mipsel, hppa. # "warning: -fstack-protector not supported for this target" # Stack protector disabled on arm (ok on armel). # compiler supports it incorrectly (leads to SEGV) -- cgit v1.2.3