From 94ee1edd1d36cdfcacf940abaa3f0a4703b7d6e7 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 1 Sep 2020 04:40:39 +0200 Subject: [PATCH] vtk: link against libatomic where needed --- srcpkgs/vtk/template | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/srcpkgs/vtk/template b/srcpkgs/vtk/template index be751c69812..e48e91778a5 100644 --- a/srcpkgs/vtk/template +++ b/srcpkgs/vtk/template @@ -26,6 +26,17 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then LDFLAGS="-lexecinfo" fi +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" +fi + +post_extract() { + [ "$XBPS_TARGET_NO_ATOMIC8" ] || return 0 + + echo "vtk_module_link(VTK::CommonDataModel PRIVATE atomic)" >> \ + Common/DataModel/CMakeLists.txt +} + post_install() { vlicense Copyright.txt