Skip to content

Commit 66ad85c

Browse files
committed
Build _ctypes_test as a shared module (fixes #721)
1 parent 51d355f commit 66ad85c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cpython-unix/extension-modules.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ _ctypes:
145145
- dl
146146

147147
_ctypes_test:
148+
build-mode: shared
148149
sources:
149150
- _ctypes/_ctypes_test.c
150151
links:

src/validation.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,10 @@ const _DEPENDENCY_PACKAGE_SYMBOLS_BUNDLED: &[&str] = &[
649649
"TkBindInit",
650650
"TkCreateFrame",
651651
"Tk_FreeGC",
652+
// _ctypes_test module
653+
"my_free",
654+
"mystrdup",
655+
"top",
652656
];
653657

654658
const PYTHON_EXPORTED_SYMBOLS: &[&str] = &[

0 commit comments

Comments
 (0)