mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-25 20:19:18 -05:00
gnu: crypto++: Don't use ‘-march=native’.
* gnu/packages/crypto.scm (crypto++)[arguments]: Add ‘disable-native-optimisation’ phase.
This commit is contained in:
parent
55dee52b9c
commit
c300cae682
1 changed files with 8 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
|
;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
|
||||||
;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox>
|
;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox>
|
||||||
;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2016, 2017 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2016, 2017 ng0 <ng0@infotropique.org>
|
;;; Copyright © 2016, 2017 ng0 <ng0@infotropique.org>
|
||||||
;;; Copyright © 2016, 2017 Eric Bavier <bavier@member.fsf.org>
|
;;; Copyright © 2016, 2017 Eric Bavier <bavier@member.fsf.org>
|
||||||
;;; Copyright © 2017 Pierre Langlois <pierre.langlois@gmx.com>
|
;;; Copyright © 2017 Pierre Langlois <pierre.langlois@gmx.com>
|
||||||
|
@ -595,6 +595,13 @@ (define-public crypto++
|
||||||
(list (string-append "PREFIX=" (assoc-ref %outputs "out")))
|
(list (string-append "PREFIX=" (assoc-ref %outputs "out")))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-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))))
|
(delete 'configure))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("unzip" ,unzip)))
|
`(("unzip" ,unzip)))
|
||||||
|
|
Loading…
Reference in a new issue