mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
_localemodule now needs to be linked with CoreFoundation on darwin.
This commit is contained in:
parent
5336f8caa4
commit
84b7447752
1 changed files with 8 additions and 1 deletions
9
setup.py
9
setup.py
|
@ -341,8 +341,15 @@ class PyBuildExt(build_ext):
|
||||||
locale_libs = ['intl']
|
locale_libs = ['intl']
|
||||||
else:
|
else:
|
||||||
locale_libs = []
|
locale_libs = []
|
||||||
|
if platform == 'darwin':
|
||||||
|
locale_extra_link_args = ['-framework', 'CoreFoundation']
|
||||||
|
else:
|
||||||
|
locale_extra_link_args = []
|
||||||
|
|
||||||
|
|
||||||
exts.append( Extension('_locale', ['_localemodule.c'],
|
exts.append( Extension('_locale', ['_localemodule.c'],
|
||||||
libraries=locale_libs ) )
|
libraries=locale_libs,
|
||||||
|
extra_link_args=locale_extra_link_args) )
|
||||||
|
|
||||||
# Modules with some UNIX dependencies -- on by default:
|
# Modules with some UNIX dependencies -- on by default:
|
||||||
# (If you have a really backward UNIX, select and socket may not be
|
# (If you have a really backward UNIX, select and socket may not be
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue