[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/12: gnu: nss: Fix cross-compiling.
From: |
guix-commits |
Subject: |
03/12: gnu: nss: Fix cross-compiling. |
Date: |
Sun, 15 Oct 2023 06:15:55 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit a888342f8924601055aaf320db78449510abdd29
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Oct 15 13:02:26 2023 +0300
gnu: nss: Fix cross-compiling.
* gnu/packages/nss.scm (nss)[arguments]: Adjust configure-flags when
cross-compiling to correctly set the target architecture and kernel.
Adjust the custom 'configure-phase when cross-compiling to use the
correct C++ compiler.
---
gnu/packages/nss.scm | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm
index 640eb5b2e4..54b9e5041a 100644
--- a/gnu/packages/nss.scm
+++ b/gnu/packages/nss.scm
@@ -143,6 +143,17 @@ in the Mozilla clients.")
#$@(if (target-riscv64?)
#~("NSS_DISABLE_GTESTS=1")
#~())
+ ;; Ensure we are building for the (%current-target-system).
+ #$@(if (%current-target-system)
+ #~((string-append
+ "OS_TEST="
+ (string-take #$(%current-target-system)
+ (string-index
#$(%current-target-system) #\-)))
+ (string-append
+ "KERNEL=" (cond (#$(target-hurd?) "gnu")
+ (#$(target-linux?) "linux")
+ (else ""))))
+ #~())
(string-append "NSPR_INCLUDE_DIR="
(search-input-directory %build-inputs
"include/nspr"))
@@ -163,6 +174,10 @@ in the Mozilla clients.")
(replace 'configure
(lambda _
(setenv "CC" #$(cc-for-target))
+ ;; TODO: Set this unconditionally
+ #$@(if (%current-target-system)
+ #~((setenv "CCC" #$(cxx-for-target)))
+ #~())
;; No VSX on powerpc-linux.
#$@(if (target-ppc32?)
#~((setenv "NSS_DISABLE_CRYPTO_VSX" "1"))
- branch master updated (d2923babf3 -> e1600546b9), guix-commits, 2023/10/15
- 02/12: gnu: mesa: Fix cross-compiling., guix-commits, 2023/10/15
- 12/12: gnu: xcb-util-errors: Fix cross-compiling., guix-commits, 2023/10/15
- 09/12: gnu: libxkbcommon: Fix cross-compiling., guix-commits, 2023/10/15
- 07/12: gnu: sway: Fix cross-compiling., guix-commits, 2023/10/15
- 01/12: gnu: libinput-minimal: Fix cross-compiling., guix-commits, 2023/10/15
- 04/12: gnu: libtirpc: Keep reference to mit-krb5 when cross-compiling., guix-commits, 2023/10/15
- 05/12: gnu: poppler: Fix cross-compiling., guix-commits, 2023/10/15
- 11/12: gnu: xorg-server-xwayland: Fix cross-compiling., guix-commits, 2023/10/15
- 03/12: gnu: nss: Fix cross-compiling.,
guix-commits <=
- 08/12: gnu: swaybg: Fix cross-compiling., guix-commits, 2023/10/15
- 06/12: gnu: wlroots: Fix cross-compiling., guix-commits, 2023/10/15
- 10/12: gnu: egl-wayland: Fix cross-compiling., guix-commits, 2023/10/15