Message ID | ad3c00645783fe5aad583c8eb51c5a22a0dd4ae1.1713763513.git.zhengjunjie@iscas.ac.cn |
---|---|
State | New |
Headers | show |
Series | fix nspr and nss cross-compilation. | expand |
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 @@ (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.