[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/7] gnu: lua: Build with support for dynamic libraries.
From: |
gno |
Subject: |
Re: [PATCH 1/7] gnu: lua: Build with support for dynamic libraries. |
Date: |
Tue, 23 Aug 2016 02:02:40 +0200 |
On Mon, 22 Aug 2016 21:39:12 +0200
Ricardo Wurmus <address@hidden> wrote:
> * gnu/packages/lua.scm (lua)[arguments]: Use regular build phase and
> add make-flags.
> ---
> gnu/packages/lua.scm | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
> index b4b5dee..52606f4 100644
> --- a/gnu/packages/lua.scm
> +++ b/gnu/packages/lua.scm
> @@ -4,6 +4,7 @@
> ;;; Copyright © 2014 Mark H Weaver <address@hidden>
> ;;; Copyright © 2014 Andreas Enge <address@hidden>
> ;;; Copyright © 2016 Efraim Flashner <address@hidden>
> +;;; Copyright © 2016 Ricardo Wurmus <address@hidden>
> ;;;
> ;;; 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")))
This doesn't work for me - lua-lgi still complains about lua not being
able to dynamically load. But this does work:
(replace 'build
(lambda _ (zero? (system* "make"
"LDFLAGS=-ldl" "CFLAGS=-fPIC -DLUA_USE_DLOPEN" "linux"))))
I tried adding LDFLAGS in #make-flags to no avail.
- [PATCH 0/7] Add Prosody, Ricardo Wurmus, 2016/08/22
- [PATCH 2/7] gnu: lua: Use "license:" prefix., Ricardo Wurmus, 2016/08/22
- [PATCH 1/7] gnu: lua: Build with support for dynamic libraries., Ricardo Wurmus, 2016/08/22
- [PATCH 3/7] gnu: Add lua5.1-expat., Ricardo Wurmus, 2016/08/22
- [PATCH 5/7] gnu: Add lua5.1-filesystem., Ricardo Wurmus, 2016/08/22
- [PATCH 4/7] gnu: Add lua5.1-socket., Ricardo Wurmus, 2016/08/22
- [PATCH 6/7] gnu: Add luasec., Ricardo Wurmus, 2016/08/22
- [PATCH 7/7] gnu: Add prosody., Ricardo Wurmus, 2016/08/22