Subject: bug#49088: grub-hybrid fails to build on aarch64-linux: error: --enable-stack-protector is not supported

From: Christopher Baines <[email-masked]>
Date: Fri, 18 Jun 2021 13:27:07 +0100

This is the relevant derivation [1], this change was probably introduced
here [2].

1: /gnu/store/vmpn3xk6mzns9zvq7dvlpj67ld3fv48p-grub-hybrid-2.06.drv
2: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=018f95094153660e3041ec160718f0bda286a3dc

checking whether `gcc' accepts `-fstack-protector'... yes
checking whether `gcc' accepts `-fstack-protector-strong'... yes
checking whether `gcc' accepts `-mstack-protector-guard=global'... no
configure: error: --enable-stack-protector is not supported (compiler doesn't support -mstack-protector-guard=global)
command "/gnu/store/7sfbiqh21h90bc6zi8br1xh60m6qgdd5-bash-minimal-5.0.16/bin/bash" "./configure" "CONFIG_SHELL=/gnu/store/7sfbiqh21h90bc6zi8br1xh60m6qgdd5-bash-minimal-5.0.16/bin/bash" "SHELL=/gnu/store/7sfbiqh21h9
0bc6zi8br1xh60m6qgdd5-bash-minimal-5.0.16/bin/bash" "--prefix=/gnu/store/f03p2i9fkngmx90npzl8igqy5h4w0z97-grub-hybrid-2.06" "--enable-fast-install" "--build=aarch64-unknown-linux-gnu" "--with-platform=efi" "--enabl
e-stack-protector" "PYTHON=true" failed with status 1