components/python/python26/patches/ld-zignore_sparc_core_workaround.patch
changeset 193 2785115729b6
parent 192 770850e7b61c
child 194 2b9fa6b4ac96
--- a/components/python/python26/patches/ld-zignore_sparc_core_workaround.patch	Wed Apr 20 10:59:37 2011 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-# This patch is to work around a core dump issue when we try to build cStringIO
-# with -zignore in LD_OPTIONS. 
-#
---- Python-2.6.4/setup.pyy	Thu Apr  7 10:38:59 2011
-+++ Python-2.6.4/setup.py	Thu Apr  7 12:04:36 2011
-@@ -235,7 +235,13 @@
-                 return
- 
-         try:
-+            ldo = None
-+	    if ext.name == 'cStringIO' and 'LD_OPTIONS' in os.environ:
-+                ldo = os.environ['LD_OPTIONS']
-+		del os.environ['LD_OPTIONS']
-             build_ext.build_extension(self, ext)
-+            if ldo != None:
-+	        os.environ['LD_OPTIONS'] = ldo
-         except (CCompilerError, DistutilsError), why:
-             self.announce('WARNING: building of extension "%s" failed: %s' %
-                           (ext.name, sys.exc_info()[1]))