From 0bd321159560ebba1139d94ea7e8007da9658e09 Mon Sep 17 00:00:00 2001 From: oreo639 Date: Sun, 28 Jan 2024 15:30:00 -0800 Subject: [PATCH] boost: don't makedepends on libquadmath when cross compiling --- srcpkgs/boost/template | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/srcpkgs/boost/template b/srcpkgs/boost/template index ca40538f493..679cd89a146 100644 --- a/srcpkgs/boost/template +++ b/srcpkgs/boost/template @@ -65,6 +65,12 @@ esac if [ -z "$CROSS_BUILD" ]; then subpackages+=" libboost_stacktrace_addr2line" + + case "$XBPS_TARGET_MACHINE" in + i686*|x86_64*|ppc64le) + makedepends+=" libquadmath-devel" + ;; + esac fi if [ "$XBPS_TARGET_LIBC" = musl ]; then @@ -72,12 +78,6 @@ if [ "$XBPS_TARGET_LIBC" = musl ]; then LDFLAGS+=" -lucontext" fi -case "$XBPS_TARGET_MACHINE" in - i686*|x86_64*|ppc64le) - makedepends+=" libquadmath-devel" - ;; -esac - case "$XBPS_TARGET_MACHINE" in i686*) _arch=x86; _abi=sysv ;; x86_64*) _arch=x86; _abi=sysv ;;