Skip to content

Commit 9861213

Browse files
committed
fixed build on python 3.8
1 parent f676e55 commit 9861213

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,24 @@ CFLAGS += -Wall -g -Wno-pointer-sign -I include/ \
6363

6464
AFL_FUZZ_FILES = $(wildcard src/afl-fuzz*.c)
6565

66-
ifneq "$(shell which python3m)" ""
67-
ifneq "$(shell which python3m-config)" ""
66+
ifneq "$(shell which python3m 2>/dev/null)" ""
67+
ifneq "$(shell which python3m-config 2>/dev/null)" ""
6868
PYTHON_INCLUDE ?= $(shell python3m-config --includes)
69-
PYTHON_LIB ?= $(shell python3m-config --ldflags)
69+
PYTHON_LIB ?= $(shell python3m-config --libs --embed)
7070
PYTHON_VERSION ?= $(strip $(shell python3m --version 2>&1))
7171
endif
7272
endif
7373

74-
ifneq "$(shell which python3)" ""
75-
ifneq "$(shell which python3-config)" ""
74+
ifneq "$(shell which python3 2>/dev/null)" ""
75+
ifneq "$(shell which python3-config 2>/dev/null)" ""
7676
PYTHON_INCLUDE ?= $(shell python3-config --includes)
77-
PYTHON_LIB ?= $(shell python3-config --ldflags)
77+
PYTHON_LIB ?= $(shell python3-config --libs --embed)
7878
PYTHON_VERSION ?= $(strip $(shell python3 --version 2>&1))
7979
endif
8080
endif
8181

82-
ifneq "$(shell which python)" ""
83-
ifneq "$(shell which python-config)" ""
82+
ifneq "$(shell which python 2>/dev/null)" ""
83+
ifneq "$(shell which python-config 2>/dev/null)" ""
8484
PYTHON_INCLUDE ?= $(shell python-config --includes)
8585
PYTHON_LIB ?= $(shell python-config --ldflags)
8686
PYTHON_VERSION ?= $(strip $(shell python --version 2>&1))

PATCHES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docs/PATCHES
1+
unsupported reparse point

QuickStartGuide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docs/QuickStartGuide.md
1+
unsupported reparse point

0 commit comments

Comments
 (0)