aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-greenlet/gcc-4.8-bugfix.patch
blob: 1526f3eb186e99f132e7a3b7ce6eb10cc9e48267 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- greenlet-0.4.0.orig/setup.py
+++ greenlet-0.4.0/setup.py
@@ -2,12 +2,7 @@
 
 import sys, os, glob, platform
 
-# workaround segfaults on openbsd and RHEL 3 / CentOS 3 . see
-# https://bitbucket.org/ambroff/greenlet/issue/11/segfault-on-openbsd-i386
-# https://github.com/python-greenlet/greenlet/issues/4
-if ((sys.platform == "openbsd4" and os.uname()[-1] == "i386")
-    or ("-with-redhat-3." in platform.platform() and platform.machine() == 'i686')):
-    os.environ["CFLAGS"] = ("%s %s" % (os.environ.get("CFLAGS", ""), "-Os")).lstrip()
+os.environ['CFLAGS'] = '-O0'
 
 try:
     if not (sys.modules.get("setuptools")