guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: gnu: crypto++: Don't use ‘-march=native’.


From: Tobias Geerinckx-Rice
Subject: 03/03: gnu: crypto++: Don't use ‘-march=native’.
Date: Sun, 31 Dec 2017 16:15:40 -0500 (EST)

nckx pushed a commit to branch master
in repository guix.

commit c300cae68233ec7cbf50c40bdea7c191eed21e54
Author: Tobias Geerinckx-Rice <address@hidden>
Date:   Sun Dec 31 15:11:38 2017 +0000

    gnu: crypto++: Don't use ‘-march=native’.
    
    * gnu/packages/crypto.scm (crypto++)[arguments]: Add
    ‘disable-native-optimisation’ phase.
---
 gnu/packages/crypto.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 92da952..1ac704d 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -3,7 +3,7 @@
 ;;; Copyright © 2015, 2017 Ricardo Wurmus <address@hidden>
 ;;; Copyright © 2016, 2017 Leo Famulari <address@hidden>
 ;;; Copyright © 2016 Lukas Gradl <address@hidden>
-;;; Copyright © 2016 Tobias Geerinckx-Rice <address@hidden>
+;;; Copyright © 2016, 2017 Tobias Geerinckx-Rice <address@hidden>
 ;;; Copyright © 2016, 2017 ng0 <address@hidden>
 ;;; Copyright © 2016, 2017 Eric Bavier <address@hidden>
 ;;; Copyright © 2017 Pierre Langlois <address@hidden>
@@ -595,6 +595,13 @@ data on your platform, so the seed itself will be as 
random as possible.
        (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'disable-native-optimisation
+           ;; This package installs more than just headers.  Ensure that the
+           ;; cryptest.exe binary & static library aren't CPU model specific.
+           (lambda _
+             (substitute* "GNUmakefile"
+               ((" -march=native") ""))
+             #t))
          (delete 'configure))))
     (native-inputs
      `(("unzip" ,unzip)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]