diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-02-03 19:29:53 +0100 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-02-03 19:29:53 +0100 |
commit | 9861213ad6449507bb4fa6003361da9e2bc6fd8c (patch) | |
tree | bacc641966372f470bb653d375ec93b02c0144ca /Makefile | |
parent | f676e5528ac8a2d454a607fceaa8590f11b9f795 (diff) | |
download | AFLplusplus-9861213ad6449507bb4fa6003361da9e2bc6fd8c.tar.gz |
fixed build on python 3.8
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -63,24 +63,24 @@ 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)" "" +ifneq "$(shell which python3m 2>/dev/null)" "" + ifneq "$(shell which python3m-config 2>/dev/null)" "" PYTHON_INCLUDE ?= $(shell python3m-config --includes) - PYTHON_LIB ?= $(shell python3m-config --ldflags) + PYTHON_LIB ?= $(shell python3m-config --libs --embed) PYTHON_VERSION ?= $(strip $(shell python3m --version 2>&1)) endif endif -ifneq "$(shell which python3)" "" - ifneq "$(shell which python3-config)" "" +ifneq "$(shell which python3 2>/dev/null)" "" + ifneq "$(shell which python3-config 2>/dev/null)" "" PYTHON_INCLUDE ?= $(shell python3-config --includes) - PYTHON_LIB ?= $(shell python3-config --ldflags) + PYTHON_LIB ?= $(shell python3-config --libs --embed) PYTHON_VERSION ?= $(strip $(shell python3 --version 2>&1)) endif endif -ifneq "$(shell which python)" "" - ifneq "$(shell which python-config)" "" +ifneq "$(shell which python 2>/dev/null)" "" + ifneq "$(shell which python-config 2>/dev/null)" "" PYTHON_INCLUDE ?= $(shell python-config --includes) PYTHON_LIB ?= $(shell python-config --ldflags) PYTHON_VERSION ?= $(strip $(shell python --version 2>&1)) |