Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31ddfb6

Browse files
committed
[Part of patch #641685] Add .dylib as an extension for shared libraries
1 parent a246d9f commit 31ddfb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/distutils/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def read_setup_file (filename):
214214
ext.extra_link_args.append(word)
215215
if not value:
216216
append_next_word = ext.extra_link_args
217-
elif suffix in (".a", ".so", ".sl", ".o"):
217+
elif suffix in (".a", ".so", ".sl", ".o", ".dylib"):
218218
# NB. a really faithful emulation of makesetup would
219219
# append a .o file to extra_objects only if it
220220
# had a slash in it; otherwise, it would s/.o/.c/

0 commit comments

Comments
 (0)