From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH 02/12] gnu: Add mingw-w64. Date: Thu, 18 Aug 2016 10:42:56 +0300 Message-ID: <87h9aiplof.fsf@gmail.com> References: <20160818060851.2853-1-janneke@gnu.org> <20160818060851.2853-3-janneke@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baHyc-0002aG-Ir for guix-devel@gnu.org; Thu, 18 Aug 2016 03:42:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1baHyZ-00036V-E4 for guix-devel@gnu.org; Thu, 18 Aug 2016 03:42:58 -0400 In-Reply-To: <20160818060851.2853-3-janneke@gnu.org> (Jan Nieuwenhuizen's message of "Thu, 18 Aug 2016 08:08:41 +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" To: Jan Nieuwenhuizen Cc: guix-devel@gnu.org Jan Nieuwenhuizen (2016-08-18 09:08 +0300) wrote: [...] > + (arguments > + `(#:configure-flags '("--host=i686-w64-mingw32") > + #:phases > + (modify-phases %standard-phases > + (add-before > + 'configure 'setenv it's more good-looking if this line is moved to the previous one :-) (add-before 'configure 'setenv > + (lambda* (#:key inputs #:allow-other-keys) > + (let ((xgcc-core (assoc-ref inputs "xgcc-core")) > + (mingw-headers (string-append (getcwd) "/mingw-w64-headers"))) > + (setenv "CPP" > + (string-append xgcc-core "/bin/i686-w64-mingw32-cpp")) > + (setenv "CROSS_C_INCLUDE_PATH" > + (string-append > + mingw-headers > + ":" mingw-headers "/include" > + ":" mingw-headers "/crt" > + ":" mingw-headers "/defaults/include" > + ":" mingw-headers "/direct-x/include")))))) -- Alex