gnu: lua: Cross compile.
* gnu/packages/lua.scm (lua)[arguments]: Use cc-for-target in make-flags. Set SYSLIBS to include readline.master
parent
1f048676b6
commit
50836eb724
|
@ -64,13 +64,16 @@
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs `(("readline" ,readline)))
|
(inputs `(("readline" ,readline)))
|
||||||
(arguments
|
(arguments
|
||||||
'(#:modules ((guix build gnu-build-system)
|
`(#:modules ((guix build gnu-build-system)
|
||||||
(guix build utils)
|
(guix build utils)
|
||||||
(srfi srfi-1))
|
(srfi srfi-1))
|
||||||
#:test-target "test"
|
#:test-target "test"
|
||||||
#:make-flags
|
#:make-flags
|
||||||
'("MYCFLAGS=-fPIC -DLUA_DL_DLOPEN"
|
(list "MYCFLAGS=-fPIC -DLUA_DL_DLOPEN"
|
||||||
"linux")
|
(string-append "CC=" ,(cc-for-target))
|
||||||
|
(string-append "SYSLIBS=-L" (assoc-ref %build-inputs "readline")
|
||||||
|
"/lib")
|
||||||
|
"linux")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
|
|
Reference in New Issue