mg: fix GNUmakefile.

This commit is contained in:
Christian Neukirchen 2016-01-18 14:20:04 +01:00
parent faff49dcaa
commit f8c0cfec10

View File

@ -16,6 +16,10 @@ case "$XBPS_TARGET_MACHINE" in
*-musl) CFLAGS+=" -DREG_STARTEND=0";;
esac
post_extract() {
sed -i 's/util.c/util.o/g' GNUmakefile
}
do_configure() {
sed -i "s,\(BSD_CPPFLAGS:=\).*,\1 -isystem ${XBPS_CROSS_BASE}/usr/include/bsd -DLIBBSD_OVERLAY,g" GNUmakefile
sed -i "s,\(BSD_LIBS:=\).*,\1 -lbsd,g" GNUmakefile