Disable optimizations again, RHBZ#1305637

f38
Michael Cronenworth 9 years ago
parent 3961198426
commit 033fd3e4d6

@ -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 \

Loading…
Cancel
Save