solve linking error when python is not available
MODIFY
include/afl-fuzz.h
include/afl-fuzz.h
@@ -647,8 +647,6 @@ extern PyObject* py_functions[PY_FUNC_COUNT];
/* Custom mutators */
void setup_custom_mutator(void);
void destroy_custom_mutator(void);
-void load_custom_mutator(const char*);
-void load_custom_mutator_py(const char*);
u8 trim_case_custom(char** argv, struct queue_entry* q, u8* in_buf);
/* Python */

MODIFY
src/afl-fuzz-mutators.c
src/afl-fuzz-mutators.c
#include "afl-fuzz.h"
+void load_custom_mutator(const char*);
+#ifdef USE_PYTHON
+void load_custom_mutator_py(const char*);
+#endif
+
void setup_custom_mutator(void) {
/* Try mutator library first */
@@ -286,6 +291,7 @@ abort_trimming:
}
+#ifdef USE_PYTHON
void load_custom_mutator_py(const char* module_name) {
mutator = ck_alloc(sizeof(struct custom_mutator));
@@ -325,3 +331,4 @@ void load_custom_mutator_py(const char* module_name) {
mutator->afl_custom_init(UR(0xFFFFFFFF));
}
+#endif

solve linking error when python is not available