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.
@@ -191,9 +191,8 @@ LIB_SRC_C += $(addprefix lib/,\
LIB += -lrt
# embedded Python
-
-EMBEDED_PYTHON ?= python3.10
-PYTHON_CONFIG := $(EMBEDED_PYTHON)-config
+EMBEDDED_PYTHON ?= python3.10
+PYTHON_CONFIG := $(EMBEDDED_PYTHON)-config
INC += $(shell $(PYTHON_CONFIG) --includes)
-LDFLAGS += $(shell $(PYTHON_CONFIG) --ldflags --embed)
+LDFLAGS += -rdynamic $(shell $(PYTHON_CONFIG) --ldflags --embed)
