@@ -63,24 +63,24 @@ CFLAGS += -Wall -g -Wno-pointer-sign -I include/ \
63
63
64
64
AFL_FUZZ_FILES = $(wildcard src/afl-fuzz* .c)
65
65
66
- ifneq "$(shell which python3m 2>/dev/null ) " ""
67
- ifneq "$(shell which python3m-config 2>/dev/null )" ""
66
+ ifneq "$(shell which python3m) " ""
67
+ ifneq "$(shell which python3m-config)" ""
68
68
PYTHON_INCLUDE ?= $(shell python3m-config --includes)
69
- PYTHON_LIB ?= $(shell python3m-config --libs --embed )
69
+ PYTHON_LIB ?= $(shell python3m-config --ldflags )
70
70
PYTHON_VERSION ?= $(strip $(shell python3m --version 2>&1) )
71
71
endif
72
72
endif
73
73
74
- ifneq "$(shell which python3 2>/dev/null ) " ""
75
- ifneq "$(shell which python3-config 2>/dev/null )" ""
74
+ ifneq "$(shell which python3) " ""
75
+ ifneq "$(shell which python3-config)" ""
76
76
PYTHON_INCLUDE ?= $(shell python3-config --includes)
77
- PYTHON_LIB ?= $(shell python3-config --libs --embed )
77
+ PYTHON_LIB ?= $(shell python3-config --ldflags )
78
78
PYTHON_VERSION ?= $(strip $(shell python3 --version 2>&1) )
79
79
endif
80
80
endif
81
81
82
- ifneq "$(shell which python 2>/dev/null ) " ""
83
- ifneq "$(shell which python-config 2>/dev/null )" ""
82
+ ifneq "$(shell which python) " ""
83
+ ifneq "$(shell which python-config)" ""
84
84
PYTHON_INCLUDE ?= $(shell python-config --includes)
85
85
PYTHON_LIB ?= $(shell python-config --ldflags)
86
86
PYTHON_VERSION ?= $(strip $(shell python --version 2>&1) )
0 commit comments