X Tutup
Skip to content

Commit a34be2d

Browse files
committed
Add .dylib as possible shlib extension
1 parent a24e25d commit a34be2d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Python/dynload_shlib.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@ const char *_PyImport_DynLoadFiletab[] = {
3939
".dll",
4040
#else /* !__CYGWIN__ */
4141
"." SOABI ".so",
42+
"." SOABI ".dylib",
4243
#ifdef ALT_SOABI
4344
"." ALT_SOABI ".so",
45+
"." ALT_SOABI ".dylib",
4446
#endif
4547
".abi" PYTHON_ABI_STRING ".so",
46-
".so",
48+
".abi" PYTHON_ABI_STRING ".dylib",
49+
".so", ".dylib",
4750
#endif /* __CYGWIN__ */
4851
NULL,
4952
};

0 commit comments

Comments
 (0)
X Tutup