[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: grub-efi: Only enable the stack protector on
From: |
guix-commits |
Subject: |
branch master updated: gnu: grub-efi: Only enable the stack protector on x86_64-linux. |
Date: |
Thu, 01 Jul 2021 19:02:33 -0400 |
This is an automated email from the git hooks/post-receive script.
cbaines pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new fd54975 gnu: grub-efi: Only enable the stack protector on
x86_64-linux.
fd54975 is described below
commit fd549750d9ab23a0505aeb4c03e1299e860a4f16
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sun Jun 27 10:48:32 2021 +0100
gnu: grub-efi: Only enable the stack protector on x86_64-linux.
Follow up to 018f95094153660e3041ec160718f0bda286a3dc, 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.
---
gnu/packages/bootloaders.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index e83f21e..742992a 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: grub-efi: Only enable the stack protector on x86_64-linux.,
guix-commits <=