diff options
author | Marius Bakke <mbakke@fastmail.com> | 2020-03-28 08:57:29 +0100 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2020-03-28 08:57:29 +0100 |
commit | a5cfb444d1c8f3ab88fb7f1f824d2d37f5099996 (patch) | |
tree | 6ff228f8e7ff4f843978531e673184fa53c2e527 | |
parent | 18c3980fb13c87964a57b48b0ae4c4c3914ffafa (diff) | |
download | patches-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.
-rw-r--r-- | gnu/packages/bdw-gc.scm | 6 |
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++") |