mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
Merge pull request #2352 from philicious/fix-macosx-make-python312
Fix building against Python3.12 on MacOS
This commit is contained in:
commit
7857baa5f4
1 changed files with 5 additions and 5 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue