[Python-checkins] r80348 - python/branches/py3k-cdecimal/setup.py
stefan.krah
python-checkins at python.org
Thu Apr 22 13:01:56 CEST 2010
Author: stefan.krah
Date: Thu Apr 22 13:01:56 2010
New Revision: 80348
Log:
Fix link error on darwin.
Modified:
python/branches/py3k-cdecimal/setup.py
Modified: python/branches/py3k-cdecimal/setup.py
==============================================================================
--- python/branches/py3k-cdecimal/setup.py (original)
+++ python/branches/py3k-cdecimal/setup.py Thu Apr 22 13:01:56 2010
@@ -1633,6 +1633,7 @@
def cdecimal_ext(self):
extra_compile_args = []
+ extra_link_args = []
sources = [
'cdecimal/cdecimal.c',
'cdecimal/basearith.c',
@@ -1698,11 +1699,14 @@
# define_macros.append(('USE_THREAD_LOCAL_STORAGE', 1))
if 'solaris' in platform and cc == 'cc': # suncc
extra_compile_args.extend(['-erroff=E_ARGUEMENT_MISMATCH'])
+ if platform == 'darwin':
+ extra_link_args.extend(['-lcc_dynamic'])
ext = Extension (
'cdecimal',
define_macros=define_macros,
undef_macros=['NDEBUG'],
extra_compile_args=extra_compile_args,
+ extra_link_args=extra_link_args,
sources=sources,
extra_objects=extra_objects,
depends=depends
More information about the Python-checkins
mailing list