[Python-checkins] r80373 - python/branches/py3k-cdecimal/setup.py

stefan.krah python-checkins at python.org
Thu Apr 22 19:39:10 CEST 2010


Author: stefan.krah
Date: Thu Apr 22 19:39:09 2010
New Revision: 80373

Log:
Another attempt to fix the link error on the Tiger buildbot.

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 19:39:09 2010
@@ -1632,7 +1632,6 @@
 
     def cdecimal_ext(self):
         extra_compile_args = []
-        extra_link_args = []
         sources = [
           'cdecimal/cdecimal.c',
           'cdecimal/basearith.c',
@@ -1699,13 +1698,12 @@
         if 'sunos' in platform and cc == 'cc': # suncc
             extra_compile_args.extend(['-erroff=E_ARGUEMENT_MISMATCH'])
         if platform == 'darwin':
-            extra_link_args.extend(['-lcc_dynamic'])
+            extra_compile_args.extend(['-fPIC'])
         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