gnome-builder: fix musl build

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-04-10 15:06:44 +02:00
parent c839a7484b
commit 12494b2a3d
No known key found for this signature in database
GPG key ID: 6764EC32352D0647

View file

@ -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