gnu: nss: Fix cross-compilation.

* gnu/packages/nss.scm (nss)[arguments]<#:make-flags>: When
cross-compilation, Add CROSS_COMPILE=1.
<#:phases>: When cross-compilation, Set env NATIVE_CC to gcc.

Change-Id: I5c9559a4b8cecf2cfc6c47d136d69c01a335faaf
Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
This commit is contained in:
Zheng Junjie 2024-04-22 13:29:17 +08:00
parent 452e7673bf
commit fb86bf658a
No known key found for this signature in database
GPG Key ID: 3B5AA993E1A2DFF0

View File

@ -157,6 +157,9 @@ in the Mozilla clients.")
(#$(target-linux?) "linux")
(else ""))))
#~())
#$@(if (%current-target-system)
#~("CROSS_COMPILE=1")
#~())
(string-append "NSPR_INCLUDE_DIR="
(search-input-directory %build-inputs
"include/nspr"))
@ -179,7 +182,8 @@ in the Mozilla clients.")
(setenv "CC" #$(cc-for-target))
;; TODO: Set this unconditionally
#$@(if (%current-target-system)
#~((setenv "CCC" #$(cxx-for-target)))
#~((setenv "CCC" #$(cxx-for-target))
(setenv "NATIVE_CC" "gcc"))
#~())
;; No VSX on powerpc-linux.
#$@(if (target-ppc32?)