mbakke pushed a commit to branch master
in repository guix.
commit 5089e9aa0626e6f69b926b97aba75d539fe38f3b
Author: Marius Bakke <[email protected]>
AuthorDate: Sat Feb 19 12:00:46 2022 +0100
gnu: efivar: Build in a deterministic fashion.
* gnu/packages/linux.scm (efivar)[arguments]: Add phase.
---
gnu/packages/linux.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index d4ae8c5c76..7a61cb9f61 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -15,7 +15,7 @@
;;; Copyright © 2016, 2018, 2019, 2020, 2021 Ricardo Wurmus
<[email protected]>
;;; Copyright © 2016 David Craven <[email protected]>
;;; Copyright © 2016 John Darrington <[email protected]>
-;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Marius Bakke
<[email protected]>
+;;; Copyright © 2016-2022 Marius Bakke <[email protected]>
;;; Copyright © 2016, 2018 Rene Saavedra <[email protected]>
;;; Copyright © 2016 Carlos Sánchez de La Lama <[email protected]>
;;; Copyright © 2016, 2017 Nikita <[email protected]>
@@ -6727,6 +6727,12 @@ under OpenGL graphics workloads.")
(string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'build-deterministically
+ (lambda _
+ (substitute* "src/include/defaults.mk"
+ ;; Don't use -march=native.
+ (("-march=native")
+ ""))))
(delete 'configure))))
(native-inputs
(list mandoc pkg-config))