diff options
author | van Hauser <vh@thc.org> | 2020-02-03 16:32:26 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-02-03 16:32:26 +0100 |
commit | ef56122888277dfe58a0b11bc3895058812967ad (patch) | |
tree | 9bd3da5c00546e2a7655e064dda1b94e1fdb5837 | |
parent | 542bea37fb79497ac3f4ea3411b2af4e5099c864 (diff) | |
download | afl++-ef56122888277dfe58a0b11bc3895058812967ad.tar.gz |
prefer python 3m
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile index 6bdbf810..da3d0766 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,14 @@ CFLAGS += -Wall -g -Wno-pointer-sign -I include/ \ AFL_FUZZ_FILES = $(wildcard src/afl-fuzz*.c) +ifneq "$(shell which python3m)" "" + ifneq "$(shell which python3m-config)" "" + PYTHON_INCLUDE ?= $(shell python3m-config --includes) + PYTHON_LIB ?= $(shell python3m-config --ldflags) + PYTHON_VERSION ?= $(strip $(shell python3m --version 2>&1)) + endif +endif + ifneq "$(shell which python3)" "" ifneq "$(shell which python3-config)" "" PYTHON_INCLUDE ?= $(shell python3-config --includes) |