summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-02-19 12:00:46 +0100
committerMarius Bakke <marius@gnu.org>2022-02-19 12:09:41 +0100
commit5089e9aa0626e6f69b926b97aba75d539fe38f3b (patch)
tree3bb5f7ad2ff2de8d425557ff538e5517537ce4d1 /gnu/packages
parent299d965f73ed63499abf5931aeca92be877a8a0a (diff)
downloadguix-5089e9aa0626e6f69b926b97aba75d539fe38f3b.tar.gz
gnu: efivar: Build in a deterministic fashion.
* gnu/packages/linux.scm (efivar)[arguments]: Add phase.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/linux.scm8
1 files changed, 7 insertions, 1 deletions
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 <rekado@elephly.net>
 ;;; Copyright © 2016 David Craven <david@craven.ch>
 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
-;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Marius Bakke <marius@gnu.org>
+;;; Copyright © 2016-2022 Marius Bakke <marius@gnu.org>
 ;;; Copyright © 2016, 2018 Rene Saavedra <pacoon@protonmail.com>
 ;;; Copyright © 2016 Carlos Sánchez de La Lama <csanchezdll@gmail.com>
 ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
@@ -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))