afl++: build with llvm18, add aarch64

This commit is contained in:
Daniel Martinez 2024-07-08 09:17:48 -04:00 committed by Leah Neukirchen
parent 3a223630fa
commit 718665427e
1 changed files with 13 additions and 5 deletions

View File

@ -1,12 +1,12 @@
# Template file for 'afl++'
pkgname=afl++
version=4.21c
revision=1
# x86 only currently
archs="i686* x86_64*"
revision=2
archs="i686* x86_64* aarch64*"
build_helper="qemu"
build_style=gnu-makefile
hostmakedepends="which"
makedepends="clang gmp-devel lld llvm llvm17-devel python3-devel"
makedepends="gmp-devel lld18 llvm18-devel python3-devel"
short_desc="American fuzzy lop Plus Plus - a brute-force fuzzer"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Apache-2.0"
@ -18,7 +18,15 @@ replaces="afl>=0"
nostrip_files="small_archive.a small_exec.elf"
export LLVM_CONFIG=llvm-config
if [ "$CROSS_BUILD" ]; then
export LLVM_CONFIG=${XBPS_CROSS_BASE}/usr/bin/llvm-config
else
export LLVM_CONFIG=llvm-config
fi
case "$XBPS_TARGET_MACHINE" in
aarch64*) export AFL_NO_X86="YES" ;;
esac
post_install() {
# Test cases contain binary .../testcases/others/elf/small_exec.elf