summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-06-12 08:52:33 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-06-12 09:09:45 +0300
commitdffaf42e5eac3822bd6b44e9749fc8e5f48fb99c (patch)
tree74b2c8d5b9506e00d0903072b2ab07715bf7f544
parent259b2e99e7121f05011742955636ff2dd96bf0e8 (diff)
downloadguix-dffaf42e5eac3822bd6b44e9749fc8e5f48fb99c.tar.gz
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'.
-rw-r--r--gnu/packages/image-processing.scm5
1 files changed, 4 insertions, 1 deletions
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