]> xenbits.xensource.com Git - libvirt.git/commitdiff
aarch64: Disable -fstack-protector.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 1 Jan 2014 13:42:49 +0000 (13:42 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 1 Jan 2014 14:21:21 +0000 (14:21 +0000)
I'm using gcc-4.8.2-7.fc21.aarch64 which does not appear to support
this option.

m4/virt-compile-warnings.m4

index 1547e0394f8312ad94bb1d73052b47ab3703a899..574fbc433e16addf22cb00eee02981071659c7a7 100644 (file)
@@ -163,6 +163,9 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[
     dnl -fstack-protector stuff passes gl_WARN_ADD with gcc
     dnl on Mingw32, but fails when actually used
     case $host in
+       aarch64-*-*)
+       dnl "error: -fstack-protector not supported for this target [-Werror]"
+       ;;
        *-*-linux*)
        dnl Fedora only uses -fstack-protector, but doesn't seem to
        dnl be great overhead in adding -fstack-protector-all instead