gnu: bdw-gc: Fix cross-compilation.

* gnu/packages/bdw-gc.scm (libgc)[propagated-inputs]: When cross-compiling,
add LIBATOMIC-OPS.
This commit is contained in:
Marius Bakke 2020-03-28 08:57:29 +01:00
parent 18c3980fb1
commit a5cfb444d1
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -56,6 +56,12 @@ (define-public libgc
'("--disable-gcj-support")
'()))))
(native-inputs `(("pkg-config" ,pkg-config)))
(propagated-inputs
(if (%current-target-system)
;; The build system refuses to check for compiler intrinsics when
;; cross-compiling, and demands using libatomic-ops instead.
`(("libatomic-ops" ,libatomic-ops))
'()))
(outputs '("out" "debug"))
(synopsis "The Boehm-Demers-Weiser conservative garbage collector
for C and C++")