me
/
guix
Archived
1
0
Fork 0

gnu: grub-efi: Only enable the stack protector on x86_64-linux.

Follow up to 018f950941, as gcc on aarch64-linux
doesn't seem to support -mstack-protector-guard=global.

Fixes <https://bugs.gnu.org/49088>.

* gnu/packages/bootloaders.scm (grub-efi)[arguments]: Only add
"--enable-stack-protector" to #:configure-flags when system is x86_64-linux.
master
Christopher Baines 2021-06-27 10:48:32 +01:00
parent 5b35276140
commit fd549750d9
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 5 additions and 1 deletions

View File

@ -303,7 +303,11 @@ menu to select one of the installed operating systems.")
((#:tests? _ #f) #f)
((#:configure-flags flags ''())
`(cons* "--with-platform=efi"
"--enable-stack-protector" ; EFI-only for now
,@(if (string-prefix? "x86_64"
(or (%current-target-system)
(%current-system)))
'("--enable-stack-protector") ; EFI-only for now
'())
,flags))
((#:phases phases)
`(modify-phases ,phases