gnu: libffi: Allow cross-compilation.
* gnu/packages/libffi.scm (libffi): Use %standard-cross-phases as the base when cross-compiling. Add (guix build gnu-cross-build) to the #:modules when cross-compiling. Improve synopsis.
This commit is contained in:
parent
1984b43895
commit
089b06348e
1 changed files with 8 additions and 3 deletions
|
@ -49,11 +49,16 @@
|
||||||
"0ln4jbpb6clcsdpb9niqk0frgx4k0xki96wiv067ig0q4cajb7aq"))))
|
"0ln4jbpb6clcsdpb9niqk0frgx4k0xki96wiv067ig0q4cajb7aq"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments `(#:modules ((guix build utils) (guix build gnu-build-system)
|
(arguments `(#:modules ((guix build utils) (guix build gnu-build-system)
|
||||||
(ice-9 ftw) (srfi srfi-26))
|
(ice-9 ftw) (srfi srfi-26)
|
||||||
|
,@(if (%current-target-system)
|
||||||
|
'((guix build gnu-cross-build))
|
||||||
|
'()))
|
||||||
#:phases (alist-cons-after 'install 'post-install
|
#:phases (alist-cons-after 'install 'post-install
|
||||||
,post-install-phase
|
,post-install-phase
|
||||||
%standard-phases)))
|
,(if (%current-target-system)
|
||||||
(synopsis "libffi, a foreign function call interface library")
|
'%standard-cross-phases
|
||||||
|
'%standard-phases))))
|
||||||
|
(synopsis "Foreign function call interface library")
|
||||||
(description
|
(description
|
||||||
"The libffi library provides a portable, high level programming interface
|
"The libffi library provides a portable, high level programming interface
|
||||||
to various calling conventions. This allows a programmer to call any
|
to various calling conventions. This allows a programmer to call any
|
||||||
|
|
Reference in a new issue