Skip to content

Commit 7d0e695

Browse files
Cryorislava
authored andcommitted
include ldflags instead of libs
1 parent b79ca6d commit 7d0e695

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ PYTHON_BIN ?= python3
66
PYTHON_CONFIG := $(PYTHON_BIN)-config
77
PYTHON_INCLUDE ?= $(shell $(PYTHON_CONFIG) --includes)
88
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`.
1010
# So of course the proper way to get python libs for embedding now is to
1111
# 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)
1313

1414
# Either finds numpy or set -DWITHOUT_NUMPY
1515
EXTRA_FLAGS += $(shell $(PYTHON_BIN) $(CURDIR)/numpy_flags.py)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy