gnu: ntp: Support cross-compilation.

* gnu/packages/ntp.scm (ntp)[arguments]: Add configuration flag.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Petr Hodina 2022-04-16 10:24:46 +02:00 committed by Ludovic Courtès
parent 237d90a780
commit 902099a8c0
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -8,6 +8,7 @@
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Marius Bakke <marius@gnu.org>
;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@ -153,7 +154,10 @@ (define-public ntp
`(("libcap" ,libcap))
'())))
(arguments
`(#:phases
`(;; Pass "--with-yielding-select=yes" so that 'configure' knows whether
;; 'select' yields when using pthreads in a cross-compilation context.
#:configure-flags (list "--with-yielding-select=yes")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-network-test
(lambda _