3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: lua: Cross compile.

* gnu/packages/lua.scm (lua)[arguments]: Use cc-for-target in
make-flags. Set SYSLIBS to include readline.
This commit is contained in:
Efraim Flashner 2020-11-16 14:16:52 +02:00
parent 1f048676b6
commit 50836eb724
Signed by untrusted user: efraim
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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)