Skip to content

Commit 2206d82

Browse files
committed
bricks/virtualhub: Add -rdynamic linker option.
This fixes this runtime error: ImportError: ~/.pyenv/versions/3.8.2/lib/python3.8/lib-dynload/math.cpython-38-x86_64-linux-gnu.so: undefined symbol: PyFloat_Type And similar for Python 3.10.4.
1 parent f9af6d8 commit 2206d82

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

bricks/virtualhub/mpconfigvariant.mk

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,8 @@ LIB_SRC_C += $(addprefix lib/,\
191191
LIB += -lrt
192192

193193
# embedded Python
194-
195-
EMBEDED_PYTHON ?= python3.10
196-
PYTHON_CONFIG := $(EMBEDED_PYTHON)-config
194+
EMBEDDED_PYTHON ?= python3.10
195+
PYTHON_CONFIG := $(EMBEDDED_PYTHON)-config
197196

198197
INC += $(shell $(PYTHON_CONFIG) --includes)
199-
LDFLAGS += $(shell $(PYTHON_CONFIG) --ldflags --embed)
198+
LDFLAGS += -rdynamic $(shell $(PYTHON_CONFIG) --ldflags --embed)

0 commit comments

Comments
 (0)