graphite: fix build for i686-musl
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user