[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] setbfree: Fix build on MIPS64
From: |
Ricardo Wurmus |
Subject: |
[PATCH] setbfree: Fix build on MIPS64 |
Date: |
Sun, 05 Jul 2015 20:44:31 +0200 |
The attached patch should fix the build of setbfree on MIPS64. The
default value for OPTIMIZATIONS contains flags for x86 systems.
I have not tested this as I don’t have access to a MIPS64 system.
>From 87a5264e54d93cfd84b3c886e2d6ee5fbe69cce7 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <address@hidden>
Date: Sun, 5 Jul 2015 20:40:56 +0200
Subject: [PATCH] gnu: setbfree: Disable unsupported optimizations on MIPS64.
* gnu/packages/music.scm (setbfree)[arguments]: Override default OPTIMIZATIONS
variable on MIPS64.
---
gnu/packages/music.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 9e7e012..8f49f04 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -424,7 +424,12 @@ 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 MIPS64
+ ,@(if (string-prefix? "mips64" (or (%current-target-system)
+ (%current-system)))
+ '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3")
+ '()))
#:phases
(modify-phases %standard-phases
(add-before 'build 'set-CC-variable
--
2.4.3
- [PATCH] setbfree: Fix build on MIPS64,
Ricardo Wurmus <=