From e7f8e07731fbb03036eaf1705f1943794c4b85b5b66f1d3d393e332cf8460e7c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com>
Date: Fri, 24 May 2019 11:41:05 +0000
Subject: [PATCH] Accepting request 705217 from
 home:marxin:branches:devel:languages:python

-  Use -fno-strict-aliasing in order to bypass:
   https://github.com/Legrandin/pycryptodome/issues/291.

OBS-URL: https://build.opensuse.org/request/show/705217
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycryptodome?expand=0&rev=26
---
 python-pycryptodome.changes | 6 ++++++
 python-pycryptodome.spec    | 4 +++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/python-pycryptodome.changes b/python-pycryptodome.changes
index 99684f9..21b82d4 100644
--- a/python-pycryptodome.changes
+++ b/python-pycryptodome.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Fri May 24 11:36:30 UTC 2019 - Martin Liška <mliska@suse.cz>
+
+-  Use -fno-strict-aliasing in order to bypass:
+   https://github.com/Legrandin/pycryptodome/issues/291.
+
 -------------------------------------------------------------------
 Tue May 14 13:03:34 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
 
diff --git a/python-pycryptodome.spec b/python-pycryptodome.spec
index bfc8105..e45a7b6 100644
--- a/python-pycryptodome.spec
+++ b/python-pycryptodome.spec
@@ -84,7 +84,9 @@ Python. Only the pieces that are extremely critical to performance
 %setup -q -n pycryptodome-%{version}
 
 %build
-export CFLAGS="%{optflags}"
+# Use -fno-strict-aliasing in order to bypass:
+# https://github.com/Legrandin/pycryptodome/issues/291
+export CFLAGS="%{optflags} -fno-strict-aliasing"
 %python_build
 
 %install