Index: Makefile =================================================================== --- Makefile (revision 522324) +++ Makefile (working copy) @@ -16,7 +16,7 @@ # In theory afl supports other architectures with the LLVM plugin. # It has to be compiled with AFL_NO_X86=1 in that case. -ONLY_FOR_ARCHS= amd64 i386 +ONLY_FOR_ARCHS= amd64 i386 powerpc64 ONLY_FOR_ARCHS_REASON= Uses binary instrumentation USES= gmake tar:tgz @@ -50,6 +50,10 @@ # Clang i386 emits .cfi_sections which base as(1) doesn't understand BUILD_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils RUN_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils +.elif ${ARCH} == "powerpc64" +CFLAGS+= -mabi=elfv2 +LDFLAGS+= -mabi=elfv2 +MAKE_ARGS+= AFL_NO_X86=1 .endif post-patch: