Skip to content

Commit 098dbf4

Browse files
committed
bricks/virtualhub: use python-config --embed option
Since we are embedding Python we should be using the --embed option to link against libpython.
1 parent 256bb5b commit 098dbf4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bricks/virtualhub/mpconfigvariant.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,5 +196,4 @@ EMBEDED_PYTHON ?= python3.10
196196
PYTHON_CONFIG := $(EMBEDED_PYTHON)-config
197197

198198
INC += $(shell $(PYTHON_CONFIG) --includes)
199-
LIB += -l$(EMBEDED_PYTHON)
200-
LDFLAGS += $(shell $(PYTHON_CONFIG) --ldflags)
199+
LDFLAGS += $(shell $(PYTHON_CONFIG) --ldflags --embed)

0 commit comments

Comments
 (0)