efraim pushed a commit to branch wip-riscv
in repository guix.

commit d041d1f21288fb02be4acb9c507234ca7535b370
Author: Efraim Flashner <[email protected]>
AuthorDate: Tue Aug 31 10:25:24 2021 +0300

    gnu: nss: Adjust make-flags for riscv64-linux.
    
    * gnu/packages/nss.scm (nss)[arguments]: When building for riscv64-linux
    don't build the binaries with gtest.
---
 gnu/packages/nss.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm
index 381756e..20b19c3 100644
--- a/gnu/packages/nss.scm
+++ b/gnu/packages/nss.scm
@@ -1,7 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès 
<[email protected]>
 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Mark H Weaver 
<[email protected]>
-;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <[email protected]>
+;;; Copyright © 2016, 2017, 2018, 2019, 2021 Efraim Flashner 
<[email protected]>
 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <[email protected]>
 ;;; Copyright © 2020, 2021 Marius Bakke <[email protected]>
 ;;; Copyright © 2020 Jonathan Brielmaier <[email protected]>
@@ -134,6 +134,11 @@ in the Mozilla clients.")
          (list "-C" "nss" (string-append "PREFIX=" out)
                "NSDISTMODE=copy"
                "NSS_USE_SYSTEM_SQLITE=1"
+               ;; The gtests fail to compile on riscv64.
+               ;; Skipping them doesn't affect the test suite.
+               ,@(if (target-riscv64?)
+                   `("NSS_DISABLE_GTESTS=1")
+                   '())
                (string-append "NSPR_INCLUDE_DIR=" nspr "/include/nspr")
                ;; Add $out/lib/nss to RPATH.
                (string-append "RPATH=" rpath)

Reply via email to