[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/17: gnu: lua: Cross compile.
From: |
guix-commits |
Subject: |
11/17: gnu: lua: Cross compile. |
Date: |
Mon, 16 Nov 2020 08:12:39 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 50836eb7244bc7b4b3681f1bc63c6dc9e3b278ab
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Nov 16 14:16:52 2020 +0200
gnu: lua: Cross compile.
* gnu/packages/lua.scm (lua)[arguments]: Use cc-for-target in
make-flags. Set SYSLIBS to include readline.
---
gnu/packages/lua.scm | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm
index 989e7b9..5d6da69 100644
--- a/gnu/packages/lua.scm
+++ b/gnu/packages/lua.scm
@@ -64,13 +64,16 @@
(build-system gnu-build-system)
(inputs `(("readline" ,readline)))
(arguments
- '(#:modules ((guix build gnu-build-system)
+ `(#:modules ((guix build gnu-build-system)
(guix build utils)
(srfi srfi-1))
#:test-target "test"
#:make-flags
- '("MYCFLAGS=-fPIC -DLUA_DL_DLOPEN"
- "linux")
+ (list "MYCFLAGS=-fPIC -DLUA_DL_DLOPEN"
+ (string-append "CC=" ,(cc-for-target))
+ (string-append "SYSLIBS=-L" (assoc-ref %build-inputs "readline")
+ "/lib")
+ "linux")
#:phases
(modify-phases %standard-phases
(delete 'configure)
- 09/17: gnu: unifdef: Cross compile., (continued)
- 09/17: gnu: unifdef: Cross compile., guix-commits, 2020/11/16
- 05/17: gnu: mktorrent: Cross compile., guix-commits, 2020/11/16
- 10/17: gnu: premake4: Cross compile., guix-commits, 2020/11/16
- 07/17: gnu: hostapd: Cross compile., guix-commits, 2020/11/16
- 12/17: gnu: bam: Cross-compile., guix-commits, 2020/11/16
- 13/17: gnu: lz4: Cross compile., guix-commits, 2020/11/16
- 14/17: gnu: squashfs-tools: Cross compile., guix-commits, 2020/11/16
- 17/17: gnu: pzstd: Cross compile., guix-commits, 2020/11/16
- 03/17: gnu: dcadec: Cross compile., guix-commits, 2020/11/16
- 08/17: gnu: dtc: Cross compile., guix-commits, 2020/11/16
- 11/17: gnu: lua: Cross compile.,
guix-commits <=
- 15/17: gnu: bsdiff: Cross compile., guix-commits, 2020/11/16
- 16/17: gnu: zstd: Cross compile., guix-commits, 2020/11/16