diff options
author | Martin Stransky <stransky@redhat.com> | 2019-12-06 17:01:56 +0100 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2019-12-06 17:01:56 +0100 |
commit | 27ee5a2c335b407b7d4d42b364e11acea05fcb58 (patch) | |
tree | d6e75ce525f0db18212cd0cdf889598867575bbb | |
parent | Merge branch 'master' into f31 (diff) | |
parent | Updated ASAN setup (diff) | |
download | librewolf-fedora-ff-27ee5a2c335b407b7d4d42b364e11acea05fcb58.tar.gz librewolf-fedora-ff-27ee5a2c335b407b7d4d42b364e11acea05fcb58.tar.bz2 librewolf-fedora-ff-27ee5a2c335b407b7d4d42b364e11acea05fcb58.zip |
Merge branch 'master' into f31
-rw-r--r-- | firefox.spec | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/firefox.spec b/firefox.spec index 0c92a7e..55f7cbf 100644 --- a/firefox.spec +++ b/firefox.spec @@ -1,7 +1,7 @@ # Set to true if it's going to be submitted as update. %global release_build 0 %global debug_build 0 -%global build_with_clang 1 +%global build_with_clang 0 %global build_with_asan 0 # Disabled arm due to rhbz#1658940 @@ -449,6 +449,13 @@ echo "ac_add_options --without-system-libvpx" >> .mozconfig echo "ac_add_options --disable-ion" >> .mozconfig %endif +%if %{build_with_asan} +echo "ac_add_options --enable-address-sanitizer" >> .mozconfig +echo "ac_add_options --disable-jemalloc" >> .mozconfig +echo "ac_add_options --disable-crashreporter" >> .mozconfig +echo "ac_add_options --disable-elf-hack" >> .mozconfig +%endif + echo 'export NODEJS="%{_buildrootdir}/bin/node-stdout-nonblocking-wrapper"' >> .mozconfig # Remove executable bit to make brp-mangle-shebangs happy. @@ -539,8 +546,8 @@ MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -L%{_libdir}" export RUSTFLAGS="-Cdebuginfo=0" %endif %if %{build_with_asan} -MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fsanitize=address" -MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -lasan" +MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fsanitize=address -Dxmalloc=myxmalloc" +MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -fsanitize=address" %endif %if !%{build_with_clang} |