try gcc6 patch
This commit is contained in:
parent
46f71756fe
commit
ebfa79fd73
@ -19,7 +19,7 @@ Group: Development/Tools
|
||||
License: Python
|
||||
URL: http://www.cython.org
|
||||
Source: http://www.cython.org/release/%{srcname}-%{upstreamversion}.tar.gz
|
||||
|
||||
Patch0: gcc6.patch
|
||||
BuildRequires: python-devel python-setuptools
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python3-devel
|
||||
@ -69,7 +69,7 @@ For more info, see:
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{upstreamversion}
|
||||
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
|
12
gcc6.patch
Normal file
12
gcc6.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- Cython-0.23/Cython/Compiler/PyrexTypes.py.orig 2016-02-05 07:56:42.411235179 -0500
|
||||
+++ Cython-0.23/Cython/Compiler/PyrexTypes.py 2016-02-05 07:59:35.926182417 -0500
|
||||
@@ -1960,7 +1960,8 @@
|
||||
#define __Pyx_CIMAG(z) ((z).imag)
|
||||
#endif
|
||||
|
||||
-#if (defined(_WIN32) || defined(__clang__)) && defined(__cplusplus) && CYTHON_CCOMPLEX
|
||||
+#if defined(__cplusplus) && !CYTHON_COMPLEX \
|
||||
+ && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && GCC_VERSION >= 40400) || __cplusplus >= 201103)
|
||||
#define __Pyx_SET_CREAL(z,x) ((z).real(x))
|
||||
#define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
|
||||
#else
|
Loading…
Reference in New Issue
Block a user