Disabled -Werror=format-security due to build failures on F30
This commit is contained in:
parent
c685c9d47b
commit
92092b1c24
@ -471,7 +471,12 @@ MOZ_OPT_FLAGS=$(echo "%{optflags}" | %{__sed} -e 's/-Wall//')
|
|||||||
# for some sources
|
# for some sources
|
||||||
# Explicitly force the hardening flags for Firefox so it passes the checksec test;
|
# Explicitly force the hardening flags for Firefox so it passes the checksec test;
|
||||||
# See also https://fedoraproject.org/wiki/Changes/Harden_All_Packages
|
# See also https://fedoraproject.org/wiki/Changes/Harden_All_Packages
|
||||||
|
%if 0%{?fedora} < 30
|
||||||
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
|
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
|
||||||
|
%else
|
||||||
|
# Workaround for mozbz#1531309
|
||||||
|
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-Werror=format-security//')
|
||||||
|
%endif
|
||||||
%if %{?hardened_build}
|
%if %{?hardened_build}
|
||||||
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fPIC -Wl,-z,relro -Wl,-z,now"
|
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fPIC -Wl,-z,relro -Wl,-z,now"
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user