[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: bdw-gc: Fix cross-compilation.
From: |
guix-commits |
Subject: |
01/02: gnu: bdw-gc: Fix cross-compilation. |
Date: |
Sat, 28 Mar 2020 04:11:24 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit a5cfb444d1c8f3ab88fb7f1f824d2d37f5099996
Author: Marius Bakke <address@hidden>
AuthorDate: Sat Mar 28 08:57:29 2020 +0100
gnu: bdw-gc: Fix cross-compilation.
* gnu/packages/bdw-gc.scm (libgc)[propagated-inputs]: When cross-compiling,
add LIBATOMIC-OPS.
---
gnu/packages/bdw-gc.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/bdw-gc.scm b/gnu/packages/bdw-gc.scm
index 5023c3b..ca2da24 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++")