aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2016-08-22 16:44:57 +0200
committerRicardo Wurmus <rekado@elephly.net>2016-08-28 12:41:27 +0200
commit07cbe28edeeaa13fdf078114ec17eb9cb921a993 (patch)
treec9f00adba3f8f692aa9cb64a2d48695214e3db1f
parentbe9f3a83319ac8936654aa44d4fa55a5336fb62e (diff)
downloadguix-07cbe28edeeaa13fdf078114ec17eb9cb921a993.tar
guix-07cbe28edeeaa13fdf078114ec17eb9cb921a993.tar.gz
gnu: lua: Build with support for dynamic libraries.
* gnu/packages/lua.scm (lua)[arguments]: Use regular build phase and add make-flags.
-rw-r--r--gnu/packages/lua.scm10
1 files changed, 6 insertions, 4 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index b4b5dee8be..52606f4eab 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -44,14 +45,15 @@
(inputs `(("readline" ,readline)))
(arguments
'(#:modules ((guix build gnu-build-system)
- (guix build utils)
- (srfi srfi-1))
+ (guix build utils)
+ (srfi srfi-1))
#:test-target "test"
+ #:make-flags
+ '("CFLAGS=-fPIC -DLUA_DL_DLOPEN -DLUA_USE_POSIX"
+ "linux")
#:phases
(modify-phases %standard-phases
(delete 'configure)
- (replace 'build
- (lambda _ (zero? (system* "make" "CFLAGS=-fPIC" "linux"))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))