]> granicus.if.org Git - python/commitdiff
_localemodule now needs to be linked with CoreFoundation on darwin.
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 15 Jul 2004 19:56:25 +0000 (19:56 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 15 Jul 2004 19:56:25 +0000 (19:56 +0000)
setup.py

index bdaa0914bad9032862b64be249c35893eea3e881..5696ee8de23d992d2eba58fada2c9dd22ea3571b 100644 (file)
--- 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