mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 14:40:21 -05:00
gnu: linux-libre: Add retpoline support on x86 [mitigates spectre].
* gnu/packages/linux.scm (make-linux-libre): On x86 systems, build with GCC-7.
This commit is contained in:
parent
f888d5bb8f
commit
dbe64d1029
1 changed files with 8 additions and 0 deletions
|
@ -283,6 +283,14 @@ (define* (make-linux-libre version hash supported-systems
|
|||
("bc" ,bc)
|
||||
("openssl" ,openssl)
|
||||
("kmod" ,kmod)
|
||||
;; On x86, build with GCC-7 for full retpoline support.
|
||||
;; FIXME: Remove this when our default compiler has retpoline support.
|
||||
,@(match (system->linux-architecture
|
||||
(or (%current-target-system) (%current-system)))
|
||||
((or "x86_64" "i386")
|
||||
`(("gcc" ,gcc-7)))
|
||||
(_
|
||||
'()))
|
||||
,@(match (and configuration-file
|
||||
(configuration-file
|
||||
(system->linux-architecture
|
||||
|
|
Loading…
Reference in a new issue