From c4a09b982f02e2f9ac5784ca02fa1e27dee86e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Fri, 28 Jan 2022 05:25:17 -0300 Subject: [PATCH] OpenSubdiv: fix build on noatomic8 archs. Not making this a change to the tbb package itself because SuiteSparse (one of the other tbb dependencies which can be cross built) builds without it. This decision can be revisited in the future, though. --- srcpkgs/OpenSubdiv/template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srcpkgs/OpenSubdiv/template b/srcpkgs/OpenSubdiv/template index 0d6867b5a6d..1838ad545dd 100644 --- a/srcpkgs/OpenSubdiv/template +++ b/srcpkgs/OpenSubdiv/template @@ -21,6 +21,12 @@ if [ "$CROSS_BUILD" ]; then configure_args+=" -DSTRINGIFY_LOCATION=/usr/bin/stringify" fi +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" + configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic" +fi + + OpenSubdiv-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files"