From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH 2/2] gnu: zita-convolver: Drop the '-march=native' optimization. Date: Wed, 06 Jan 2016 22:13:55 +0100 Message-ID: <874meq5s30.fsf@elephly.net> References: <1452095330-14147-1-git-send-email-iyzsong@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGvPB-0005Cy-Sg for guix-devel@gnu.org; Wed, 06 Jan 2016 16:14:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGvP8-00088D-MU for guix-devel@gnu.org; Wed, 06 Jan 2016 16:14:05 -0500 Received: from sender163-mail.zoho.com ([74.201.84.163]:25926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGvP8-000880-DY for guix-devel@gnu.org; Wed, 06 Jan 2016 16:14:02 -0500 In-reply-to: <1452095330-14147-1-git-send-email-iyzsong@gmail.com> 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: =?utf-8?B?5a6L5paH5q2m?= Cc: guix-devel@gnu.org > + (snippet > + ;; Don't optimize for a specific processor architecture. > + '(substitute* "libs/Makefile" > + (("^CXXFLAGS \\+= -march=native") ""))) > + (modules '((guix build utils))) Is this to avoid that packages are optimised for the CPU of the build slave? If so, could we instead pass different optimisation flags for different architectures? For a convolver I’d prefer to have *some* optimisation, even if it’s just the greatest common divisor. ~~ Ricardo