mbakke pushed a commit to branch core-updates
in repository guix.
commit 4d67659700798cd0ee8c966312abb4a2308ac636
Author: Marius Bakke <[email protected]>
AuthorDate: Sun Jan 26 13:02:29 2020 +0100
gnu: jsoncpp: Fix cross-compilation.
* gnu/packages/serialization.scm (jsoncpp)[arguments]: Add configure flag to
prevent running a test during the build process.
---
gnu/packages/serialization.scm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm
index 0b3eb7e..8149b05 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -2,7 +2,7 @@
;;; Copyright © 2015, 2017, 2019 Ricardo Wurmus <[email protected]>
;;; Copyright © 2016 Lukas Gradl <[email protected]>
;;; Copyright © 2016 David Craven <[email protected]>
-;;; Copyright © 2016, 2019 Marius Bakke <[email protected]>
+;;; Copyright © 2016, 2019, 2020 Marius Bakke <[email protected]>
;;; Copyright © 2016, 2018, 2019 Efraim Flashner <[email protected]>
;;; Copyright © 2017 Corentin Bocquillon <[email protected]>
;;; Copyright © 2017 Gregor Giesen <[email protected]>
@@ -297,7 +297,10 @@ that implements both the msgpack and msgpack-rpc
specifications.")
"037d1b1qdmn3rksmn1j71j26bv4hkjv7sn7da261k853xb5899sg"))))
(build-system cmake-build-system)
(arguments
- `(#:configure-flags '("-DBUILD_SHARED_LIBS:BOOL=YES")
+ `(#:configure-flags '("-DBUILD_SHARED_LIBS:BOOL=YES"
+ ,@(if (%current-target-system)
+ `("-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF")
+ '()))
,@(if (%current-target-system)
'()
`(#:cmake ,cmake-bootstrap))))