diff options
Diffstat (limited to 'srcpkgs')
-rw-r--r-- | srcpkgs/afl++/template | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/srcpkgs/afl++/template b/srcpkgs/afl++/template index 9b1dc05f81e..c92bd1bd768 100644 --- a/srcpkgs/afl++/template +++ b/srcpkgs/afl++/template @@ -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 |