[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/6] gnu: nspr: Fix cross-compilation.
From: |
Christina O'Donnell |
Subject: |
[PATCH 2/6] gnu: nspr: Fix cross-compilation. |
Date: |
Fri, 26 Apr 2024 22:33:58 +0100 |
From: Zheng Junjie <zhengjunjie@iscas.ac.cn>
* gnu/packages/nss.scm (nspr)[arguments]<#:configure-flags>: When
cross-compilation, Add HOST_CC=gcc.
Change-Id: I337f217f153f8cc3a713906643d6fab9115056e9
Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
---
gnu/packages/nss.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm
index 459e53bc1cf..0baafe2f373 100644
--- a/gnu/packages/nss.scm
+++ b/gnu/packages/nss.scm
@@ -71,7 +71,10 @@ (define-public nspr
#~(list "--disable-static"
"--enable-64bit"
(string-append "LDFLAGS=-Wl,-rpath="
- (assoc-ref %outputs "out") "/lib"))
+ (assoc-ref %outputs "out") "/lib")
+ #$@(if (%current-target-system)
+ #~("HOST_CC=gcc")
+ #~()))
;; Use fixed timestamps for reproducibility.
#:make-flags #~'("SH_DATE='1970-01-01 00:00:01'"
;; This is epoch 1 in microseconds.
--
2.41.0
- [PATCH 0/6] WIP: nss: Update to 3.99, Christina O'Donnell, 2024/04/26
- [PATCH 4/6] gnu: nss: Update to 3.99., Christina O'Donnell, 2024/04/26
- [PATCH 1/6] gnu: nss: Fix cross-compilation., Christina O'Donnell, 2024/04/26
- [PATCH 2/6] gnu: nspr: Fix cross-compilation.,
Christina O'Donnell <=
- [PATCH 3/6] gnu: nss: Make reproducible., Christina O'Donnell, 2024/04/26
- [PATCH 6/6] WIP: nss: Attempting to resolve FIPS regression., Christina O'Donnell, 2024/04/26
- [PATCH 5/6] gnu: nss-certs: Update to 3.99., Christina O'Donnell, 2024/04/26