summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2017-03-14 20:47:40 +0200
committerEfraim Flashner <efraim@flashner.co.il>2017-03-14 20:48:39 +0200
commit568004c3c9a87b95d4e19a3187f336a20d33440a (patch)
tree6afc88e3fd1c3eb950f09fb7f64698c25af971d0
parent044006f3d28ec20aa111440471b2150956a832e5 (diff)
gnu: nss: Build for aarch64-linux with 64-bit support.
* gnu/packages/gnuzilla.scm (nss)[arguments]: Set the environmental variable 'USE_64' on aarch64-linux also.
-rw-r--r--gnu/packages/gnuzilla.scm14
1 files changed, 9 insertions, 5 deletions
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 55dfda4948..79bf103306 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -3,7 +3,7 @@
;;; Copyright © 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014, 2015, 2016, 2017 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
-;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
;;;
;;; This file is part of GNU Guix.
@@ -23,6 +23,7 @@
(define-module (gnu packages gnuzilla)
#:use-module ((srfi srfi-1) #:hide (zip))
+ #:use-module (ice-9 match)
#:use-module (gnu packages)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
@@ -203,7 +204,7 @@ in the Mozilla clients.")
(build-system gnu-build-system)
(outputs '("out" "bin"))
(arguments
- '(#:parallel-build? #f ; failed
+ `(#:parallel-build? #f ; not supported
#:make-flags
(let* ((out (assoc-ref %outputs "out"))
(nspr (string-append (assoc-ref %build-inputs "nspr")))
@@ -223,11 +224,14 @@ in the Mozilla clients.")
#:phases
(modify-phases %standard-phases
(replace 'configure
- (lambda* (#:key system inputs #:allow-other-keys)
+ (lambda _
(setenv "CC" "gcc")
;; Tells NSS to build for the 64-bit ABI if we are 64-bit system.
- (when (string-prefix? "x86_64" system)
- (setenv "USE_64" "1"))
+ ,@(match (%current-system)
+ ((or "x86_64-linux" "aarch64-linux")
+ `((setenv "USE_64" "1")))
+ (_
+ '()))
#t))
(replace 'check
(lambda _