From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20=C4=8Cech?= Subject: [PATCH] gnu: luajit: Add -fPIC into CFLAGS. Date: Mon, 15 Dec 2014 23:52:41 +0100 Message-ID: <1418683961-28525-1-git-send-email-sleep_walker@suse.cz> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0eVO-0006vl-QM for guix-devel@gnu.org; Mon, 15 Dec 2014 17:52:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0eVH-0002Yu-Ut for guix-devel@gnu.org; Mon, 15 Dec 2014 17:52:42 -0500 Received: from cantor2.suse.de ([195.135.220.15]:35544 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0eVH-0002Yi-OV for guix-devel@gnu.org; Mon, 15 Dec 2014 17:52:35 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D7EB0AC28 for ; Mon, 15 Dec 2014 22:52:34 +0000 (UTC) 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: guix-devel@gnu.org * gnu/packages/lua.scm (luajit): Add -fPIC into CFLAGS and pass it to make. --- gnu/packages/lua.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index eda69f9..0b6c4e4 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -92,7 +92,8 @@ for configuration, scripting, and rapid prototyping.") (arguments '(#:tests? #f ;luajit is distributed without tests #:phases (alist-delete 'configure %standard-phases) - #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))))) + #:make-flags (list (string-append "CFLAGS=-fPIC " (or (getenv "CFLAGS") "")) + (string-append "PREFIX=" (assoc-ref %outputs "out"))))) (home-page "http://www.luajit.org/") (synopsis "Just in time compiler for Lua programming language version 5.1") (description -- 2.0.4