From 033fd3e4d6bd17279af2aa675ecc1c688ceb18b6 Mon Sep 17 00:00:00 2001 From: Michael Cronenworth Date: Thu, 11 Feb 2016 16:38:58 -0600 Subject: [PATCH] Disable optimizations again, RHBZ#1305637 --- wine.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wine.spec b/wine.spec index 1906f6c..e8456ec 100644 --- a/wine.spec +++ b/wine.spec @@ -677,7 +677,12 @@ rm -rf patches/ # disable fortify as it breaks wine # http://bugs.winehq.org/show_bug.cgi?id=24606 # http://bugs.winehq.org/show_bug.cgi?id=25073 +%if 0%{?fedora} > 23 export CFLAGS="`echo $RPM_OPT_FLAGS | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//'` -Wno-error" +%else +export TEMP_CFLAGS="`echo $RPM_OPT_FLAGS | sed -e 's/-O2/-O0/'`" +export CFLAGS="`echo $TEMP_CFLAGS | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//'` -Wno-error" +%endif %configure \ --sysconfdir=%{_sysconfdir}/wine \