diff options
author | Martin Stransky <stransky@redhat.com> | 2019-12-06 15:08:29 +0100 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2019-12-06 15:08:29 +0100 |
commit | 7d0c154b63e56f8c809f23cd428c78bf45580068 (patch) | |
tree | ba572036ef412ba4fea17ce14b91a839623373fa /firefox.spec | |
parent | Merge branch 'master' into f31 (diff) | |
parent | fixed clang builds (diff) | |
download | librewolf-fedora-ff-7d0c154b63e56f8c809f23cd428c78bf45580068.tar.gz librewolf-fedora-ff-7d0c154b63e56f8c809f23cd428c78bf45580068.tar.bz2 librewolf-fedora-ff-7d0c154b63e56f8c809f23cd428c78bf45580068.zip |
Merge branch 'master' into f31
Diffstat (limited to 'firefox.spec')
-rw-r--r-- | firefox.spec | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/firefox.spec b/firefox.spec index 040b671..1223ce8 100644 --- a/firefox.spec +++ b/firefox.spec @@ -2,6 +2,7 @@ %global release_build 0 %global debug_build 0 %global build_with_clang 1 +%global build_with_asan 0 # Disabled arm due to rhbz#1658940 ExcludeArch: armv7hl @@ -533,9 +534,16 @@ MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -L%{_libdir}" %ifarch %{arm} %{ix86} export RUSTFLAGS="-Cdebuginfo=0" %endif +%if %{build_with_asan} +MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fsanitize=address" +MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -lasan" +%endif + +%if !%{build_with_clang} export CFLAGS=$MOZ_OPT_FLAGS export CXXFLAGS=$MOZ_OPT_FLAGS export LDFLAGS=$MOZ_LINK_FLAGS +%endif export PREFIX='%{_prefix}' export LIBDIR='%{_libdir}' |