From 84d191ea30eb7d97ee3f4d62f39c811ba77bb187 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 28 Aug 2022 11:29:20 +0300 Subject: gnu: libatomic-ops: Fix test suite on riscv64-linux. * gnu/packages/bdw-gc.scm (libatomic-ops)[arguments]: When building for riscv64-linux add a configure-flag to link libatomic. --- gnu/packages/bdw-gc.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/bdw-gc.scm b/gnu/packages/bdw-gc.scm index 2698d56da0..268f0703b8 100644 --- a/gnu/packages/bdw-gc.scm +++ b/gnu/packages/bdw-gc.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2016, 2018 Leo Famulari ;;; Copyright © 2017 Rene Saavedra ;;; Copyright © 2019, 2020 Marius Bakke +;;; Copyright © 2022 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; @@ -134,6 +135,11 @@ C or C++ programs, though that is not its primary goal.") (base32 "1bwry043f62pc4mgdd37zx3fif19qyrs8f5bw7qxlmkzh5hdyzjq")))) (build-system gnu-build-system) + (arguments + `(,@(if (target-riscv64?) + `(#:configure-flags + (list "CFLAGS_EXTRA=-latomic")) + '()))) (outputs '("out" "debug")) (synopsis "Accessing hardware atomic memory update operations") (description -- cgit v1.2.3