summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index bdaa091..5696ee8 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