File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ PYTHON_BIN ?= python3
6
6
PYTHON_CONFIG := $(PYTHON_BIN ) -config
7
7
PYTHON_INCLUDE ?= $(shell $(PYTHON_CONFIG ) --includes)
8
8
EXTRA_FLAGS := $(PYTHON_INCLUDE )
9
- # NOTE: Since python3.8, the correct invocation is `python3-config --libs --embed`.
9
+ # NOTE: Since python3.8, the correct invocation is `python3-config --libs --embed`.
10
10
# So of course the proper way to get python libs for embedding now is to
11
11
# invoke that, check if it crashes, and fall back to just `--libs` if it does.
12
- LDFLAGS += $(shell if $(PYTHON_CONFIG ) --libs --embed >/dev/null; then $(PYTHON_CONFIG ) --libs --embed; else $(PYTHON_CONFIG ) --libs ; fi)
12
+ LDFLAGS += $(shell if $(PYTHON_CONFIG ) --ldflags --embed >/dev/null; then $(PYTHON_CONFIG ) --ldflags --embed; else $(PYTHON_CONFIG ) --ldflags ; fi)
13
13
14
14
# Either finds numpy or set -DWITHOUT_NUMPY
15
15
EXTRA_FLAGS += $(shell $(PYTHON_BIN ) $(CURDIR ) /numpy_flags.py)
You can’t perform that action at this time.
0 commit comments