From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] Fix subread on non-x86_64 Date: Mon, 26 Oct 2015 15:45:11 +0100 Message-ID: <87d1w14rk8.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zqj1S-0004qb-2i for guix-devel@gnu.org; Mon, 26 Oct 2015 10:45:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zqj1N-0007Mz-Pu for guix-devel@gnu.org; Mon, 26 Oct 2015 10:45:18 -0400 In-Reply-To: (Ricardo Wurmus's message of "Fri, 23 Oct 2015 14:23:27 +0200") 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: Ricardo Wurmus Cc: guix-devel Ricardo Wurmus skribis: > the attached patch should fix the build of subread on non-x86_64 by > overriding the CC and CCFLAGS variables, which by default are set to > contain a lot of x86_64 optimisations. Nice! Could you add a comment explaining that? > From 71a37b56d0962f0db4009bdb6a88c22025278a00 Mon Sep 17 00:00:00 2001 > From: Ricardo Wurmus > Date: Fri, 23 Oct 2015 14:16:27 +0200 > Subject: [PATCH] gnu: subread: Use SSE optimizations on x86_64 only. > > * gnu/packages/bioinformatics.scm (subread)[arguments]: Override CC and > CCFLAGS conditionally dependent on target system. [...] > + (if (string-prefix? "x86_64" system) > + (string-append "CCFLAGS=3D" (string-join (append flag= s flags64) " ")) > + (string-append "CCFLAGS=3D" (string-join flags " ")))) The last argument to =E2=80=98string-join=E2=80=99 can be omitted here. OK with these two changes. It may be a good case for =E2=80=98guix challenge=E2=80=99 here: If things = like -mtune=3Dnative or FDO creep in, =E2=80=98guix challenge=E2=80=99 is likely= to flag them. Thanks, Ludo=E2=80=99.