mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-11 14:26:13 +01:00
gnu: nspr: Use mozilla-build-system.
* gnu/packages/nss.scm (nspr)[build-system]: Adjust it. (nspr)[arguments]<#:configure-flags>: Remove now superfluous --target and --host. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
parent
fae2fcdbc9
commit
385ba2f369
1 changed files with 3 additions and 11 deletions
|
@ -29,6 +29,7 @@
|
|||
#:use-module (guix gexp)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:use-module (guix build-system mozilla)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (gnu packages)
|
||||
#:use-module (gnu packages bash)
|
||||
|
@ -49,7 +50,7 @@
|
|||
(sha256
|
||||
(base32
|
||||
"1j5b2m8cjlhnnv8sq34587avaagkqvh521w4f95miwgvsn3xlaap"))))
|
||||
(build-system gnu-build-system)
|
||||
(build-system mozilla-build-system)
|
||||
(inputs
|
||||
;; TODO(core-updates): Make these inputs unconditional.
|
||||
;; For 'compile-et.pl' and 'nspr-config'.
|
||||
|
@ -72,16 +73,7 @@
|
|||
(list "--disable-static"
|
||||
"--enable-64bit"
|
||||
(string-append "LDFLAGS=-Wl,-rpath="
|
||||
(assoc-ref %outputs "out") "/lib")
|
||||
;; Mozilla deviates from Autotools conventions
|
||||
;; due to historical reasons. Adjust to Mozilla conventions,
|
||||
;; otherwise the Makefile will try to use TARGET-gcc
|
||||
;; as a ‘native’ compiler.
|
||||
,@(if (%current-target-system)
|
||||
`(,(string-append "--host="
|
||||
(nix-system->gnu-triplet (%current-system)))
|
||||
,(string-append "--target=" (%current-target-system)))
|
||||
'()))
|
||||
(assoc-ref %outputs "out") "/lib"))
|
||||
;; Use fixed timestamps for reproducibility.
|
||||
#:make-flags '("SH_DATE='1970-01-01 00:00:01'"
|
||||
;; This is epoch 1 in microseconds.
|
||||
|
|
Loading…
Add table
Reference in a new issue