From d69bcbec1badb9c3e1ab0a812eb93cb03f15dd5c Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 11 Mar 2021 01:48:04 +0100 Subject: [PATCH] cabbage: need libatomic on some platforms --- srcpkgs/cabbage/template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srcpkgs/cabbage/template b/srcpkgs/cabbage/template index 9b650bccf50..c0f5f33b3b8 100644 --- a/srcpkgs/cabbage/template +++ b/srcpkgs/cabbage/template @@ -31,6 +31,11 @@ case "$XBPS_TARGET_MACHINE" in ppc*) CXXFLAGS="-DPNG_POWERPC_VSX_OPT=0" ;; esac +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" + LDFLAGS=" -latomic" +fi + # without TARGET_ARCH, the build system will assume -march=native, # which is wrong as we're building a generic package and -march does # not even always work