render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
c401cc
From 17040efdeb50de19c8136e2253a04aa11230cf30 Mon Sep 17 00:00:00 2001
c401cc
Message-Id: <17040efdeb50de19c8136e2253a04aa11230cf30.1390394207.git.jdenemar@redhat.com>
c401cc
From: "Richard W.M. Jones" <rjones@redhat.com>
c401cc
Date: Mon, 20 Jan 2014 09:03:26 -0700
c401cc
Subject: [PATCH] aarch64: Disable -fstack-protector.
c401cc
c401cc
https://bugzilla.redhat.com/show_bug.cgi?id=1042937
c401cc
c401cc
I'm using gcc-4.8.2-7.fc21.aarch64 which does not appear to support
c401cc
this option.
c401cc
c401cc
(cherry picked from commit fe881ae086ec13fc73edc201956b6b9a7b9765e6)
c401cc
c401cc
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c401cc
---
c401cc
 m4/virt-compile-warnings.m4 | 3 +++
c401cc
 1 file changed, 3 insertions(+)
c401cc
c401cc
diff --git a/m4/virt-compile-warnings.m4 b/m4/virt-compile-warnings.m4
c401cc
index 8731b70..c0e9295 100644
c401cc
--- a/m4/virt-compile-warnings.m4
c401cc
+++ b/m4/virt-compile-warnings.m4
c401cc
@@ -179,6 +179,9 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[
c401cc
     dnl -fstack-protector stuff passes gl_WARN_ADD with gcc
c401cc
     dnl on Mingw32, but fails when actually used
c401cc
     case $host in
c401cc
+       aarch64-*-*)
c401cc
+       dnl "error: -fstack-protector not supported for this target [-Werror]"
c401cc
+       ;;
c401cc
        *-*-linux*)
c401cc
        dnl Fedora only uses -fstack-protector, but doesn't seem to
c401cc
        dnl be great overhead in adding -fstack-protector-all instead
c401cc
-- 
c401cc
1.8.5.3
c401cc