[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[v2 1/3] gnu: lua-5.2: Rewrite make flags.
From: |
Leo Famulari |
Subject: |
[v2 1/3] gnu: lua-5.2: Rewrite make flags. |
Date: |
Mon, 14 Dec 2015 01:57:14 -0500 |
* gnu/packages/lua.scm (lua-5.2)[arguments]: Rewrite make flags.
---
gnu/packages/lua.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index d27c024..ace2c01 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2014 Raimon Grau <address@hidden>
;;; Copyright © 2014 Mark H Weaver <address@hidden>
;;; Copyright © 2014 Andreas Enge <address@hidden>
+;;; Copyright © 2015 Leo Famulari <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -48,7 +49,14 @@
#:test-target "test"
#:phases (alist-replace
'build
- (lambda _ (zero? (system* "make" "CFLAGS=-fPIC" "linux")))
+ ;; We use $PLAT to select the platform-dependent method
+ ;; for loading shared libraries. We also build the Lua
+ ;; interpreter and shared library as position
+ ;; independent code.
+ (lambda _ (zero? (system* "make"
+ "PLAT=linux"
+ "MYCFLAGS=-fPIC"
+ "MYLDFLAGS=-fPIC")))
(alist-replace
'install
(lambda* (#:key outputs #:allow-other-keys)
--
2.6.2