gnu: boost: Omit context and coroutines libraries on mips64el.

* gnu/packages/boost.scm (boost): Omit context and coroutines libraries on
  mips64el.
This commit is contained in:
Mark H Weaver 2014-07-24 23:06:49 -04:00
parent 508ea01ef2
commit aaf77acc1a

View file

@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 John Darrington <jmd@gnu.org>
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
;;;
;;; This file is part of GNU Guix.
;;;
@ -46,6 +47,15 @@ (define-public boost
("python" ,python-2)
("tcsh" ,tcsh)))
(arguments
(let ((build-flags
`("threading=multi" "link=shared"
;; Boost's 'context' library is not yet supported on mips64, so
;; we disable it. The 'coroutine' library depends on 'context',
;; so we disable that too.
,@(if (equal? "mips64el-linux" (or (%current-target-system)
(%current-system)))
'("--without-context" "--without-coroutine")
'()))))
`(#:phases
(alist-replace
'configure
@ -68,7 +78,7 @@ (define-public boost
(alist-replace
'build
(lambda _
(zero? (system* "./b2" "threading=multi" "link=shared")))
(zero? (system* "./b2" ,@build-flags)))
(alist-replace
'check
@ -77,8 +87,8 @@ (define-public boost
(alist-replace
'install
(lambda _
(zero? (system* "./b2" "install" "threading=multi" "link=shared")))
%standard-phases))))))
(zero? (system* "./b2" "install" ,@build-flags)))
%standard-phases)))))))
(home-page "http://boost.org")
(synopsis "Peer-reviewed portable C++ source libraries")