mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-23 19:19:20 -05:00
gnu: setbfree: Disable unsupported optimizations on non-x86.
* gnu/packages/music.scm (setbfree)[arguments]: Override default OPTIMIZATIONS variable on non-x86 systems.
This commit is contained in:
parent
fc3cbc67c1
commit
b42d45088d
1 changed files with 8 additions and 1 deletions
|
@ -424,7 +424,14 @@ (define-public setbfree
|
||||||
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
||||||
(string-append "FONTFILE="
|
(string-append "FONTFILE="
|
||||||
(assoc-ref %build-inputs "font-bitstream-vera")
|
(assoc-ref %build-inputs "font-bitstream-vera")
|
||||||
"/share/fonts/truetype/VeraBd.ttf"))
|
"/share/fonts/truetype/VeraBd.ttf")
|
||||||
|
;; Disable unsupported optimization flags on non-x86
|
||||||
|
,@(let ((system (or (%current-target-system)
|
||||||
|
(%current-system))))
|
||||||
|
(if (or (string-prefix? "x86_64" system)
|
||||||
|
(string-prefix? "i686" system))
|
||||||
|
'()
|
||||||
|
'("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3"))))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'build 'set-CC-variable
|
(add-before 'build 'set-CC-variable
|
||||||
|
|
Loading…
Reference in a new issue