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
parent
5b35276140
commit
fd549750d9
|
@ -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
|
||||
|
|
Reference in New Issue