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

stefan.krah python-checkins at python.org
Fri Nov 26 00:34:52 CET 2010


Author: stefan.krah
Date: Fri Nov 26 00:34:51 2010
New Revision: 86756

Log:
OpenIndiana: problems with global constant in inline asm.

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	Fri Nov 26 00:34:51 2010
@@ -1790,8 +1790,9 @@
                 define_macros = [('CONFIG_64', '1'), ('ANSI', '1')]
         elif sizeof_size_t == 4:
             ppro = sysconfig.get_config_var('HAVE_GCC_ASM_FOR_X87')
-            if ppro and ('gcc' in cc or 'clang' in cc):
-                # darwin: problems with global constant in inline asm.
+            if ppro and ('gcc' in cc or 'clang' in cc) and \
+               not 'sunos' in platform:
+                # darwin, solaris: problems with global constant in inline asm.
                 # icc >= 11.0 works as well.
                 define_macros = [('CONFIG_32', '1'), ('PPRO', '1'),
                                  ('ASM', '1')]


More information about the Python-checkins mailing list