use modern macro optflags

This commit is contained in:
Miroslav Suchý 2017-11-08 09:31:15 +00:00 committed by Jan Horak
parent 7a6ed0983b
commit 151cfe2392

View File

@ -492,7 +492,7 @@ find ./ -name config.guess -exec cp /usr/lib/rpm/config.guess {} ';'
#
# Disable C++ exceptions since Mozilla code is not exception-safe
#
MOZ_OPT_FLAGS=$(echo "$RPM_OPT_FLAGS" | %{__sed} -e 's/-Wall//')
MOZ_OPT_FLAGS=$(echo "%{optflags}" | %{__sed} -e 's/-Wall//')
#rhbz#1037063
# -Werror=format-security causes build failures when -Wno-format is explicitly given
# for some sources