diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2020-11-16 14:16:52 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-11-16 14:16:52 +0200 |
commit | 50836eb7244bc7b4b3681f1bc63c6dc9e3b278ab (patch) | |
tree | 2f032413743c5fa4fd9e0717aeeb8486d2263327 /gnu/packages/lua.scm | |
parent | 1f048676b6f281633cc11def311ed23fe5fc4b6d (diff) | |
download | guix-50836eb7244bc7b4b3681f1bc63c6dc9e3b278ab.tar.gz |
gnu: lua: Cross compile.
* gnu/packages/lua.scm (lua)[arguments]: Use cc-for-target in make-flags. Set SYSLIBS to include readline.
Diffstat (limited to 'gnu/packages/lua.scm')
-rw-r--r-- | gnu/packages/lua.scm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 989e7b9b46..5d6da69fae 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) |