Early fail in sys/debian.sh and use proper CFLAGS ##build

This commit is contained in:
pancake 2021-01-13 01:26:32 +01:00 committed by pancake
parent af66a574ba
commit fb846712f9

View File

@ -18,10 +18,16 @@ DEVDIR=dist/debian/radare2-dev/root
# clean
rm -rf "${PKGDIR}" "${DEVDIR}"
export CFLAGS="-O2 -Werror -Wno-cpp"
export CFLAGS="${CFLAGS} -Wno-unused-result"
export CFLAGS="${CFLAGS} -Wno-stringpop-truncation"
# build
./configure --prefix=/usr > /dev/null
[ $? != 0 ] && exit 1
make -j4 > /dev/null
[ $? != 0 ] && exit 1
make install DESTDIR="${PWD}/${PKGDIR}" > /dev/null
[ $? != 0 ] && exit 1
# dev-split
mkdir -p "${DEVDIR}/usr/include"