diff options
author | van Hauser <vh@thc.org> | 2020-04-25 12:57:45 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-04-25 12:57:45 +0200 |
commit | 42017bbeda83f99979fc22a391b07ce6deebb824 (patch) | |
tree | aa132d22141847a36eadb1570a565df6d00f2aa7 | |
parent | a3ee281e2ba364b618c056569222d70de036a3d7 (diff) | |
download | afl++-42017bbeda83f99979fc22a391b07ce6deebb824.tar.gz |
fix python detection for Ubuntu and others
-rw-r--r-- | GNUmakefile | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/GNUmakefile b/GNUmakefile index 0ba4a2b6..8811da03 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -116,10 +116,10 @@ endif # Old Ubuntu and others dont have python/python3-config so we hardcode 3.7 ifeq "$(PYTHON_INCLUDE)" "" ifneq "$(shell command -v python3.7 2>/dev/null)" "" - ifneq "$(shell command -v python-config3.7-config 2>/dev/null)" "" - PYTHON_INCLUDE ?= $(shell python-config --includes) - PYTHON_LIB ?= $(shell python-config --ldflags) - PYTHON_VERSION ?= $(strip $(shell python --version 2>&1)) + ifneq "$(shell command -v python3.7-config 2>/dev/null)" "" + PYTHON_INCLUDE ?= $(shell python3.7-config --includes) + PYTHON_LIB ?= $(shell python3.7-config --ldflags) + PYTHON_VERSION ?= $(strip $(shell python3.7 --version 2>&1)) endif endif endif @@ -127,10 +127,10 @@ endif # Old Ubuntu and others dont have python/python2-config so we hardcode 2.7 ifeq "$(PYTHON_INCLUDE)" "" ifneq "$(shell command -v python2.7 2>/dev/null)" "" - ifneq "$(shell command -v python-config2.7-config 2>/dev/null)" "" - PYTHON_INCLUDE ?= $(shell python-config --includes) - PYTHON_LIB ?= $(shell python-config --ldflags) - PYTHON_VERSION ?= $(strip $(shell python --version 2>&1)) + ifneq "$(shell command -v python2.7-config 2>/dev/null)" "" + PYTHON_INCLUDE ?= $(shell python2.7-config --includes) + PYTHON_LIB ?= $(shell python2.7-config --ldflags) + PYTHON_VERSION ?= $(strip $(shell python2.7 --version 2>&1)) endif endif endif |