[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: rapidjson: Fix building on aarch64.
From: |
Efraim Flashner |
Subject: |
01/01: gnu: rapidjson: Fix building on aarch64. |
Date: |
Thu, 30 Mar 2017 18:07:04 -0400 (EDT) |
efraim pushed a commit to branch core-updates
in repository guix.
commit 4fbed7494d782f1a1ee027e1a3a2d2e4b12a53ab
Author: Efraim Flashner <address@hidden>
Date: Thu Mar 30 23:20:07 2017 +0300
gnu: rapidjson: Fix building on aarch64.
* gnu/packages/web.scm (rapidjson)[arguments]: Add custom phase for
aarch64 to fix -march detection.
---
gnu/packages/web.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 1c97437..7215dcb 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -9,7 +9,7 @@
;;; Copyright © 2015 Eric Dvorsak <address@hidden>
;;; Copyright © 2016 Sou Bunnbu <address@hidden>
;;; Copyright © 2016 Jelle Licht <address@hidden>
-;;; Copyright © 2016 Efraim Flashner <address@hidden>
+;;; Copyright © 2016, 2017 Efraim Flashner <address@hidden>
;;; Copyright © 2016 Rene Saavedra <address@hidden>
;;; Copyright © 2016 Ben Woodcroft <address@hidden>
;;; Copyright © 2016 Clément Lassieur <address@hidden>
@@ -464,6 +464,17 @@ current version of any major web browser.")
'(substitute* (find-files "." "^CMakeLists\\.txt$")
(("-Werror") "")))))
(build-system cmake-build-system)
+ (arguments
+ `(,@(if (string-prefix? "aarch64" (or (%current-target-system)
+ (%current-system)))
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-aarch-march-detection
+ (lambda _
+ (substitute* (find-files "." "^CMakeLists\\.txt$")
+ (("native") "armv8-a"))
+ #t))))
+ '())))
(home-page "https://github.com/miloyip/rapidjson")
(synopsis "JSON parser/generator for C++ with both SAX/DOM style API")
(description