Merge pull request #2352 from philicious/fix-macosx-make-python312
Fix building against Python3.12 on MacOS
This commit is contained in:
1 file changed
+5
-5
+5
-5
@@ -281,16 +281,16 @@ endif
|
|||||||
|
|
||||||
## Python3 (optional)
|
## Python3 (optional)
|
||||||
ifneq ($(SKIPPYTHON),1)
|
ifneq ($(SKIPPYTHON),1)
|
||||||
PYTHONINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags python3 2>/dev/null)
|
# since python3.8, applications willing to embed python must use -embed:
|
||||||
PYTHONLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs python3 2>/dev/null)
|
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),)
|
ifneq ($(PYTHONLDLIBS),)
|
||||||
PYTHONLIBLD = $(PYTHONLDLIBS)
|
PYTHONLIBLD = $(PYTHONLDLIBS)
|
||||||
PYTHONLIBINC = $(subst -I,-isystem ,$(PYTHONINCLUDES))
|
PYTHONLIBINC = $(subst -I,-isystem ,$(PYTHONINCLUDES))
|
||||||
PYTHON_FOUND = 1
|
PYTHON_FOUND = 1
|
||||||
else
|
else
|
||||||
# since python3.8, applications willing to embed python must use -embed:
|
PYTHONINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags python3 2>/dev/null)
|
||||||
PYTHONINCLUDES = $(shell $(PKG_CONFIG_ENV) pkg-config --cflags python3-embed 2>/dev/null)
|
PYTHONLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs python3 2>/dev/null)
|
||||||
PYTHONLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs python3-embed 2>/dev/null)
|
|
||||||
ifneq ($(PYTHONLDLIBS),)
|
ifneq ($(PYTHONLDLIBS),)
|
||||||
PYTHONLIBLD = $(PYTHONLDLIBS)
|
PYTHONLIBLD = $(PYTHONLDLIBS)
|
||||||
PYTHONLIBINC = $(subst -I,-isystem ,$(PYTHONINCLUDES))
|
PYTHONLIBINC = $(subst -I,-isystem ,$(PYTHONINCLUDES))
|
||||||
|
|||||||
Reference in new issue
Block a user