mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: zpaq: Tune for 'generic-armv7-a' on armhf.
* gnu/packages/compression.scm (zpaq)[arguments]: Change the CXXFLAGS so on armhf-linux we build with '-mtune=generic-armv7-a' and not '-mtune=generic'.
This commit is contained in:
parent
89eb56f05f
commit
effd7198b9
1 changed files with 5 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
|||
;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
|
||||
;;; Copyright © 2015 Leo Famulari <leo@famulari.name>
|
||||
;;; Copyright © 2015 Jeff Mickey <j@codemac.net>
|
||||
;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2015, 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
|
||||
;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org>
|
||||
;;; Copyright © 2016, 2017 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
|
@ -1034,11 +1034,12 @@ (define-public zpaq
|
|||
(_ " -DNOJIT")))
|
||||
;; These should be safe, lowest-common-denominator instruction sets,
|
||||
;; allowing for some optimisation while remaining reproducible.
|
||||
(string-append "CXXFLAGS=-O3 -mtune=generic -DNDEBUG"
|
||||
(string-append "CXXFLAGS=-O3 -DNDEBUG"
|
||||
,(match (or (%current-target-system)
|
||||
(%current-system))
|
||||
("x86_64-linux" " -march=nocona")
|
||||
("i686-linux" " -march=i686")
|
||||
("x86_64-linux" " -march=nocona -mtune=generic")
|
||||
("i686-linux" " -march=i686 -mtune=generic")
|
||||
("armhf-linux" " -mtune=generic-armv7-a")
|
||||
(_ "")))
|
||||
(string-append "PREFIX="
|
||||
(assoc-ref %outputs "out")))))
|
||||
|
|
Loading…
Reference in a new issue