diff options
author | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2024-04-22 13:29:16 +0800 |
---|---|---|
committer | Zheng Junjie <zhengjunjie@iscas.ac.cn> | 2024-04-24 09:43:06 +0800 |
commit | 452e7673bfeb0a14cecb8e760dda2c436aa69047 (patch) | |
tree | 98949b796f28767ec9b5da9a51712a35a4b49fa0 /gnu/packages | |
parent | c58b443102e92fccfbc204769a57757287e41d11 (diff) | |
download | guix-452e7673bfeb0a14cecb8e760dda2c436aa69047.tar.gz guix-452e7673bfeb0a14cecb8e760dda2c436aa69047.zip |
gnu: nspr: Fix cross-compilation.
* 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>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/nss.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm index 14612d7ce9..a93406b9eb 100644 --- a/gnu/packages/nss.scm +++ b/gnu/packages/nss.scm @@ -71,7 +71,10 @@ #~(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. |