From 28959c317c63fb3174ff6ee8ec28dae0bbfa35fd Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 16 Oct 2022 13:59:14 +0000 Subject: [PATCH] glog: fix build on ppc*-musl --- srcpkgs/glog/template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srcpkgs/glog/template b/srcpkgs/glog/template index bb260e408d1..26110efd0a0 100644 --- a/srcpkgs/glog/template +++ b/srcpkgs/glog/template @@ -22,6 +22,11 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES='-latomic'" fi +case "$XBPS_TARGET_MACHINE" in + ppc64*-musl) configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES='-lucontext'";; + ppc*-musl) configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES='-latomic -lucontext'";; +esac + post_install() { vlicense COPYING }