community/afl: fix

This commit is contained in:
Kevin Mihelich 2017-09-12 00:26:26 +00:00
parent bf94e69b46
commit e896926179

View file

@ -3,6 +3,7 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - make with AFL_NO_X86=1
# - strip -fno-plt from v5 CFLAGS (old LLVM)
pkgname=afl
pkgver=2.51b
@ -26,6 +27,7 @@ sha512sums=('fd67cf44b7336175041c2efa42b122e91f887f4a293618a59ea1e145ef47b9c0fab
build() {
cd ${pkgname}-${pkgver}
[[ $CARCH == "arm" ]] && CFLAGS=`echo $CFLAGS | sed -e 's/-fno-plt//'` && CXXFLAGS="$CFLAGS"
make PREFIX=/usr AFL_NO_X86=1
make -C llvm_mode PREFIX=/usr
}