From dffaf42e5eac3822bd6b44e9749fc8e5f48fb99c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 12 Jun 2023 08:52:33 +0300 Subject: [PATCH] gnu: vtk: Fix building on riscv64-linux. * gnu/packages/image-processing.scm (vtk)[arguments]: Adjust configure-flags when building for riscv64-linux to link with '-latomic'. --- gnu/packages/image-processing.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index 6ecb9dd0a8..12d18a555a 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm @@ -385,7 +385,10 @@ many popular formats.") "-DVTK_SMP_ENABLE_OPENNMP=ON" "-DVTK_SMP_ENABLE_TBB=ON" "-DVTK_USE_MPI=ON" - ) + #$@(if (target-riscv64?) + '("-DCMAKE_SHARED_LINKER_FLAGS=-latomic" + "-DCMAKE_EXE_LINKER_FLAGS=-latomic") + '())) #:phases #~(modify-phases %standard-phases