From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] setbfree: Fix build on MIPS64 Date: Mon, 06 Jul 2015 07:14:04 +0200 Message-ID: <874mlhkgv7.fsf@elephly.net> References: <877fqejvg0.fsf@elephly.net> <878uau44rk.fsf@netris.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZByjY-0001uq-32 for guix-devel@gnu.org; Mon, 06 Jul 2015 01:14:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZByjS-0000zQ-Sl for guix-devel@gnu.org; Mon, 06 Jul 2015 01:14:24 -0400 Received: from sender163-mail.zoho.com ([74.201.84.163]:25175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZByjS-0000z9-K9 for guix-devel@gnu.org; Mon, 06 Jul 2015 01:14:18 -0400 In-reply-to: <878uau44rk.fsf@netris.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: Guix-devel --=-=-= Content-Type: text/plain Attached is a new patch, leaving the optimizations unaltered only on i686 and x86_64. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-setbfree-Disable-unsupported-optimizations-on-no.patch >From 50536b6e40eed40822b65aba2c296809e5bfbc1e Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sun, 5 Jul 2015 20:40:56 +0200 Subject: [PATCH] gnu: setbfree: Disable unsupported optimizations on non-x86. * gnu/packages/music.scm (setbfree)[arguments]: Override default OPTIMIZATIONS variable on non-x86 systems. --- gnu/packages/music.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 9e7e012..13ddd8b 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 -- 2.4.3 --=-=-=--