From: Ricardo Wurmus <rekado@elephly.net>
To: Guix-devel <guix-devel@gnu.org>
Subject: [PATCH] setbfree: Fix build on MIPS64
Date: Sun, 05 Jul 2015 20:44:31 +0200 [thread overview]
Message-ID: <877fqejvg0.fsf@elephly.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 202 bytes --]
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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-setbfree-Disable-unsupported-optimizations-on-MI.patch --]
[-- Type: text/x-patch, Size: 1399 bytes --]
From 87a5264e54d93cfd84b3c886e2d6ee5fbe69cce7 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <rekado@elephly.net>
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
next reply other threads:[~2015-07-05 18:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-05 18:44 Ricardo Wurmus [this message]
2015-07-05 22:29 ` [PATCH] setbfree: Fix build on MIPS64 Mark H Weaver
2015-07-06 5:14 ` Ricardo Wurmus
2015-07-06 7:40 ` Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877fqejvg0.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.