diff options
author | Martin Stransky <stransky@redhat.com> | 2019-03-01 08:10:52 +0100 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2019-03-01 08:10:52 +0100 |
commit | 92092b1c24cd67c55e3615fff4b85af85bb7f5d3 (patch) | |
tree | 6f94999e984c584966936cbfe05ccd04d650f2a0 | |
parent | Enable ARBT for Fedora 29 and later to catch wayland crashes. Disabled system... (diff) | |
download | librewolf-fedora-ff-92092b1c24cd67c55e3615fff4b85af85bb7f5d3.tar.gz librewolf-fedora-ff-92092b1c24cd67c55e3615fff4b85af85bb7f5d3.tar.bz2 librewolf-fedora-ff-92092b1c24cd67c55e3615fff4b85af85bb7f5d3.zip |
Disabled -Werror=format-security due to build failures on F30
-rw-r--r-- | firefox.spec | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firefox.spec b/firefox.spec index a648190..8498e15 100644 --- a/firefox.spec +++ b/firefox.spec @@ -471,7 +471,12 @@ MOZ_OPT_FLAGS=$(echo "%{optflags}" | %{__sed} -e 's/-Wall//') # for some sources # Explicitly force the hardening flags for Firefox so it passes the checksec test; # 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" +%else +# Workaround for mozbz#1531309 +MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-Werror=format-security//') +%endif %if %{?hardened_build} MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fPIC -Wl,-z,relro -Wl,-z,now" %endif |