From 9edb30f1665a97861ad6b49a5ef280dd78c75c76 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 26 May 2020 17:01:53 +0200 Subject: [PATCH] chg, python3-embed checks (@doegox) --- client/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client/Makefile b/client/Makefile index 9ee678a4b..70f45ca81 100644 --- a/client/Makefile +++ b/client/Makefile @@ -136,13 +136,20 @@ LDLIBS += $(LUALIB) INCLUDES += $(LUALIBINC) ## Python3 -#PYTHON_CONFIG := python3-config PYTHONINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags python3 2>/dev/null) PYTHONLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs python3 2>/dev/null) ifneq ($(PYTHONLDLIBS),) PYTHONLIB = $(PYTHONLDLIBS) PYTHONLIBINC = $(PYTHONINCLUDES) PYTHON_FOUND = 1 +else + PYTHONINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags python3-embed 2>/dev/null) + PYTHONLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs python3-embed 2>/dev/null) + ifneq ($(PYTHONLDLIBS),) + PYTHONLIB = $(PYTHONLDLIBS) + PYTHONLIBINC = $(PYTHONINCLUDES) + PYTHON_FOUND = 1 + endif endif LDLIBS += $(PYTHONLIB) INCLUDES += $(PYTHONLIBINC)