graphite: fix build for i686-musl

This commit is contained in:
Jürgen Buchmüller 2020-10-28 11:17:16 +01:00
parent 60e3ca1b06
commit 5aa4c91a6f

View file

@ -14,6 +14,18 @@ homepage="https://github.com/silnrsi/graphite"
distfiles="https://github.com/silnrsi/graphite/releases/download/${version}/graphite2-${version}.tgz"
checksum=f99d1c13aa5fa296898a181dff9b82fb25f6cc0933dbaa7a475d8109bd54209d
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
LDFLAGS+=" -L${XBPS_CROSS_BASE}/usr/lib -lssp_nonshared"
fi
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
i686-musl) # fails to link against ssp_nonshared with -nodefaultlibs
vsed -i src/CMakeLists.txt -e "s;-nodefaultlibs;;"
;;
esac
}
graphite-devel_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"