From cd3175f242450169b269ead777be6c7835476fba Mon Sep 17 00:00:00 2001 From: doncatnip Date: Thu, 25 Aug 2016 01:43:53 +0200 Subject: [PATCH 1/3] gnu: lua: Enable dynamic library support. * gnu/packages/lua.scm: (lua)[arguments]: Add make flags. --- 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 b4b5dee..c68a3ff 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2014 Mark H Weaver ;;; Copyright © 2014 Andreas Enge ;;; Copyright © 2016 Efraim Flashner +;;; Copyright © 2016 doncatnip ;;; ;;; This file is part of GNU Guix. ;;; @@ -51,7 +52,10 @@ (modify-phases %standard-phases (delete 'configure) (replace 'build - (lambda _ (zero? (system* "make" "CFLAGS=-fPIC" "linux")))) + (lambda _ (zero? (system* + "make" "LDFLAGS=-ldl" + "CFLAGS=-fPIC -DLUA_USE_DLOPEN -DLUA_USE_POSIX" + "linux")))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) -- 2.9.3