From 902099a8c0fae2288d1da6d2da683b251b492691 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sat, 16 Apr 2022 10:24:46 +0200 Subject: gnu: ntp: Support cross-compilation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/ntp.scm (ntp)[arguments]: Add configuration flag. Co-authored-by: Ludovic Courtès --- gnu/packages/ntp.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm index 7a3c033b2e..75460150a2 100644 --- a/gnu/packages/ntp.scm +++ b/gnu/packages/ntp.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2019 Maxim Cournoyer ;;; Copyright © 2021 Marius Bakke ;;; Copyright © 2021 Brice Waegeneire +;;; Copyright © 2022 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -153,7 +154,10 @@ time-stamping or reference clock, sub-microsecond accuracy is possible.") `(("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 _ -- cgit v1.2.3