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 \