--- 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")