27 lines
772 B
Bash
27 lines
772 B
Bash
# Template file for 'afl'
|
|
pkgname=afl
|
|
version=2.56b
|
|
revision=1
|
|
# x86 only currently
|
|
archs="i686* x86_64*"
|
|
wrksrc="AFL-${version}"
|
|
build_style=gnu-makefile
|
|
hostmakedepends="llvm clang which"
|
|
short_desc="American fuzzy lop - a brute-force fuzzer"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/google/AFL/"
|
|
distfiles="https://github.com/google/AFL/archive/v${version}.tar.gz"
|
|
checksum=1d4a372e49af02fbcef0dc3ac436d03adff577afc2b6245c783744609d9cdd22
|
|
|
|
nostrip_files="small_archive.a small_exec.elf"
|
|
|
|
do_build() {
|
|
make PREFIX=/usr
|
|
|
|
CFLAGS="${CFLAGS//-fstack-clash-protection} -fPIC" \
|
|
CXXFLAGS="${CXXFLAGS//-fstack-clash-protection} -fPIC" \
|
|
LDFLAGS="${LDFLAGS} -pie" \
|
|
make PREFIX=/usr CC=clang CXX=clang++ -C llvm_mode
|
|
}
|