summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-05-25 18:03:52 +0200
committerLudovic Courtès <ludo@gnu.org>2013-05-25 18:03:52 +0200
commit089b06348e8129980660c69f8122015c1ad6ae9c (patch)
tree8f540e24727e82f690f673d3ff9c19e447bdfef7 /gnu/packages
parent1984b43895dc8ef9f093482bc8ac5fb7e20054b8 (diff)
downloadpatches-089b06348e8129980660c69f8122015c1ad6ae9c.tar
patches-089b06348e8129980660c69f8122015c1ad6ae9c.tar.gz
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.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/libffi.scm11
1 files changed, 8 insertions, 3 deletions
diff --git a/gnu/packages/libffi.scm b/gnu/packages/libffi.scm
index 21ddd46340..f7d4a8c908 100644
--- a/gnu/packages/libffi.scm
+++ b/gnu/packages/libffi.scm
@@ -49,11 +49,16 @@
"0ln4jbpb6clcsdpb9niqk0frgx4k0xki96wiv067ig0q4cajb7aq"))))
(build-system 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
,post-install-phase
- %standard-phases)))
- (synopsis "libffi, a foreign function call interface library")
+ ,(if (%current-target-system)
+ '%standard-cross-phases
+ '%standard-phases))))
+ (synopsis "Foreign function call interface library")
(description
"The libffi library provides a portable, high level programming interface
to various calling conventions. This allows a programmer to call any