Skip to content

Commit 42d2f10

Browse files
committed
Fix Linux: export Python symbols for extension modules
1 parent 9ea8756 commit 42d2f10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

c_src/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ ifeq ($(UNAME_S),Darwin)
2020
LDFLAGS += -undefined dynamic_lookup -flat_namespace
2121
SO_EXT = .so
2222
else ifeq ($(UNAME_S),Linux)
23-
LDFLAGS += -Wl,-rpath,'$$ORIGIN'
23+
# Export Python symbols for extension modules, set rpath for runtime
24+
LDFLAGS += -Wl,--export-dynamic -Wl,-rpath,'$$ORIGIN'
2425
SO_EXT = .so
2526
else
2627
SO_EXT = .dll

0 commit comments

Comments
 (0)