aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2020-03-28 08:57:29 +0100
committerMarius Bakke <mbakke@fastmail.com>2020-03-28 08:57:29 +0100
commita5cfb444d1c8f3ab88fb7f1f824d2d37f5099996 (patch)
tree6ff228f8e7ff4f843978531e673184fa53c2e527 /gnu/packages
parent18c3980fb13c87964a57b48b0ae4c4c3914ffafa (diff)
downloadpatches-a5cfb444d1c8f3ab88fb7f1f824d2d37f5099996.tar
patches-a5cfb444d1c8f3ab88fb7f1f824d2d37f5099996.tar.gz
gnu: bdw-gc: Fix cross-compilation.
* gnu/packages/bdw-gc.scm (libgc)[propagated-inputs]: When cross-compiling, add LIBATOMIC-OPS.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/bdw-gc.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/bdw-gc.scm b/gnu/packages/bdw-gc.scm
index 5023c3b6e8..ca2da249fe 100644
--- a/gnu/packages/bdw-gc.scm
+++ b/gnu/packages/bdw-gc.scm
@@ -56,6 +56,12 @@
'("--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++")