diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-02-03 20:05:40 +0100 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-02-03 20:05:40 +0100 |
commit | 1775c8a6ff333c25390d4db3a0c57fd6c49de42a (patch) | |
tree | 7bf4ac0a7d4924114a175f604e9ebdf08913557a | |
parent | 3c8cf0c53f79fa2926f699e5195969a329897a86 (diff) | |
download | afl++-1775c8a6ff333c25390d4db3a0c57fd6c49de42a.tar.gz |
refixed python 3.8
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile index da3d0766..13981a06 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,8 @@ 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) + # Sarting with python3.8, we need to pass the `embed` flag. Earier versions didn't know this flag. + PYTHON_LIB ?= $(shell python3m-config --libs --embed 2>/dev/null || python3m-config --ldflags) PYTHON_VERSION ?= $(strip $(shell python3m --version 2>&1)) endif endif @@ -74,7 +75,7 @@ endif ifneq "$(shell which python3)" "" ifneq "$(shell which python3-config)" "" PYTHON_INCLUDE ?= $(shell python3-config --includes) - PYTHON_LIB ?= $(shell python3-config --ldflags) + PYTHON_LIB ?= $(shell python3-config --libs --embed 2>/dev/null || python3-config --ldflags) PYTHON_VERSION ?= $(strip $(shell python3 --version 2>&1)) endif endif |