mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Patch by Bill Noon: added 'dylib' as a library type along with
'static' and 'shared'. This fixes extension building for dynamic Pythons on MacOSX.
This commit is contained in:
parent
9403591014
commit
e259e5980c
2 changed files with 9 additions and 4 deletions
|
@ -792,8 +792,8 @@ class CCompiler:
|
|||
output_dir=''):
|
||||
|
||||
if output_dir is None: output_dir = ''
|
||||
if lib_type not in ("static","shared"):
|
||||
raise ValueError, "'lib_type' must be \"static\" or \"shared\""
|
||||
if lib_type not in ("static","shared","dylib"):
|
||||
raise ValueError, "'lib_type' must be \"static\", \"shared\" or \"dylib\""
|
||||
fmt = getattr (self, lib_type + "_lib_format")
|
||||
ext = getattr (self, lib_type + "_lib_extension")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue