From: Jack Jansen Date: Thu, 15 Jul 2004 19:56:25 +0000 (+0000) Subject: _localemodule now needs to be linked with CoreFoundation on darwin. X-Git-Tag: v2.4a2~242 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84b744775206eceefc9c94ba3e23f18332ac062b;p=python _localemodule now needs to be linked with CoreFoundation on darwin. --- diff --git a/setup.py b/setup.py index bdaa0914ba..5696ee8de2 100644 --- a/setup.py +++ b/setup.py @@ -341,8 +341,15 @@ class PyBuildExt(build_ext): locale_libs = ['intl'] else: locale_libs = [] + if platform == 'darwin': + locale_extra_link_args = ['-framework', 'CoreFoundation'] + else: + locale_extra_link_args = [] + + 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: # (If you have a really backward UNIX, select and socket may not be