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:
Efraim Flashner 2017-02-03 19:17:47 +02:00
parent 89eb56f05f
commit effd7198b9
No known key found for this signature in database
GPG Key ID: F4C1D3917EACEE93
1 changed files with 5 additions and 4 deletions

View File

@ -7,7 +7,7 @@
;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015 Leo Famulari <leo@famulari.name> ;;; Copyright © 2015 Leo Famulari <leo@famulari.name>
;;; Copyright © 2015 Jeff Mickey <j@codemac.net> ;;; 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 Ben Woodcroft <donttrustben@gmail.com>
;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org> ;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org>
;;; Copyright © 2016, 2017 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2016, 2017 Tobias Geerinckx-Rice <me@tobias.gr>
@ -1034,11 +1034,12 @@ functionality in a C++ iostream.")
(_ " -DNOJIT"))) (_ " -DNOJIT")))
;; These should be safe, lowest-common-denominator instruction sets, ;; These should be safe, lowest-common-denominator instruction sets,
;; allowing for some optimisation while remaining reproducible. ;; allowing for some optimisation while remaining reproducible.
(string-append "CXXFLAGS=-O3 -mtune=generic -DNDEBUG" (string-append "CXXFLAGS=-O3 -DNDEBUG"
,(match (or (%current-target-system) ,(match (or (%current-target-system)
(%current-system)) (%current-system))
("x86_64-linux" " -march=nocona") ("x86_64-linux" " -march=nocona -mtune=generic")
("i686-linux" " -march=i686") ("i686-linux" " -march=i686 -mtune=generic")
("armhf-linux" " -mtune=generic-armv7-a")
(_ ""))) (_ "")))
(string-append "PREFIX=" (string-append "PREFIX="
(assoc-ref %outputs "out"))))) (assoc-ref %outputs "out")))))