diff --git a/srcpkgs/gnome-builder/template b/srcpkgs/gnome-builder/template index 9aa00e8b93..9b8fe5e33b 100644 --- a/srcpkgs/gnome-builder/template +++ b/srcpkgs/gnome-builder/template @@ -15,3 +15,16 @@ homepage="https://wiki.gnome.org/Apps/Builder" license="GPL-2.0-or-later" distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz" checksum=71b7527a4297b5e4986754f5563cb9afc777bc8a890b90145c05ac93f2d6a9f8 + +case "$XBPS_TARGET_MACHINE" in + *-musl) makedepends+=" libexecinfo-devel" + LIBS+=" -lexecinfo" + case "$XBPS_TARGET_MACHINE" in + aarch64*|x86_64*) + CXXFLAGS+=" -D__WORDSIZE=64" + ;; + *) CXXFLAGS+=" -D__WORDSIZE=32" + ;; + esac + ;; +esac