summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2015-07-05 20:40:56 +0200
committerRicardo Wurmus <rekado@elephly.net>2015-07-15 17:19:58 +0200
commitb42d45088d19069c960cf8c3301449730917a02d (patch)
treebd457ae436a743fe3bf8becdf7688efe67b29fa7
parentfc3cbc67c1d325ccfcf582890b1df3a1ba5aeea5 (diff)
downloadpatches-b42d45088d19069c960cf8c3301449730917a02d.tar
patches-b42d45088d19069c960cf8c3301449730917a02d.tar.gz
gnu: setbfree: Disable unsupported optimizations on non-x86.
* gnu/packages/music.scm (setbfree)[arguments]: Override default OPTIMIZATIONS variable on non-x86 systems.
-rw-r--r--gnu/packages/music.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 9e7e0126c0..13ddd8b338 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -424,7 +424,14 @@ Editor. It is compatible with Power Tab Editor 1.7 and Guitar Pro.")
(list (string-append "PREFIX=" (assoc-ref %outputs "out"))
(string-append "FONTFILE="
(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
(modify-phases %standard-phases
(add-before 'build 'set-CC-variable