From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: [PATCH 2/5] gnu: Build lua-5.2 with dynamic library support. Date: Mon, 2 Nov 2015 12:46:41 -0500 Message-ID: <0f36a80beb2f4796dd3c62cf97559743456f79f4.1446485963.git.leo@famulari.name> References: 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]:39698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtJC4-00069U-2q for guix-devel@gnu.org; Mon, 02 Nov 2015 12:46:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtJC0-0003Zh-R7 for guix-devel@gnu.org; Mon, 02 Nov 2015 12:46:55 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:40738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtJC0-0003Y1-NO for guix-devel@gnu.org; Mon, 02 Nov 2015 12:46:52 -0500 Received: from jasmine.lan (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 7824D6801C4 for ; Mon, 2 Nov 2015 12:46:49 -0500 (EST) In-Reply-To: In-Reply-To: References: 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 (lua-5.2)[arguments]: Rewrite make-flags so that Lua is built with platform-specific instructions for shared library loading (dlopen). --- gnu/packages/lua.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 6bedde3..bbb1b8c 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2014 Raimon Grau ;;; Copyright © 2014 Mark H Weaver ;;; Copyright © 2014 Andreas Enge +;;; Copyright © 2015 Leo Famulari ;;; ;;; This file is part of GNU Guix. ;;; @@ -47,7 +48,10 @@ #:test-target "test" #:phases (alist-replace 'build - (lambda _ (zero? (system* "make" "CFLAGS=-fPIC" "linux"))) + (lambda _ (zero? (system* "make" + "PLAT=linux" + "MYCFLAGS=-fPIC" + "MYLDFLAGS=-fPIC"))) (alist-replace 'install (lambda* (#:key outputs #:allow-other-keys) -- 2.6.1