aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Martinez <danielmartinez@cock.li>2024-07-08 13:17:48 +0000
committerLeah Neukirchen <leah@vuxu.org>2024-07-26 14:27:05 +0000
commit718665427eb5fc4fc67455f5f0e0b2e0ed9fea1c (patch)
tree9fc43a5d5e4f28192c97ffc3bc64ac6e5ba5dd6a
parent3a223630fac2be8d230ee7e3fbbfebc6194bb098 (diff)
downloadvoid-packages-718665427eb5fc4fc67455f5f0e0b2e0ed9fea1c.tar
void-packages-718665427eb5fc4fc67455f5f0e0b2e0ed9fea1c.tar.gz
void-packages-718665427eb5fc4fc67455f5f0e0b2e0ed9fea1c.tar.bz2
void-packages-718665427eb5fc4fc67455f5f0e0b2e0ed9fea1c.tar.lz
void-packages-718665427eb5fc4fc67455f5f0e0b2e0ed9fea1c.tar.xz
void-packages-718665427eb5fc4fc67455f5f0e0b2e0ed9fea1c.tar.zst
void-packages-718665427eb5fc4fc67455f5f0e0b2e0ed9fea1c.zip
afl++: build with llvm18, add aarch64
-rw-r--r--srcpkgs/afl++/template18
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