Build with -Werror=format-security (rhbz#1037063)

This commit is contained in:
Martin Stransky 2013-12-13 14:17:56 +01:00
parent 28acd1beec
commit d6ac14fbe3
1 changed files with 6 additions and 1 deletions

View File

@ -58,7 +58,7 @@
Summary: Mozilla Firefox Web browser
Name: firefox
Version: 26.0
Release: 2%{?pre_tag}%{?dist}
Release: 3%{?pre_tag}%{?dist}
URL: http://www.mozilla.org/projects/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet
@ -193,6 +193,8 @@ cd %{tarballdir}
#
MOZ_OPT_FLAGS=$(echo $RPM_OPT_FLAGS | \
%{__sed} -e 's/-Wall//')
#rhbz#1037063
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
%if %{?debug_build}
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
%endif
@ -443,6 +445,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#---------------------------------------------------------------------
%changelog
* Fri Dec 13 2013 Martin Stransky <stransky@redhat.com> - 26.0-3
- Build with -Werror=format-security (rhbz#1037063)
* Mon Dec 9 2013 Martin Stransky <stransky@redhat.com> - 26.0-2
- Update to 26.0 Build 2