Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | MOZ_AUTOMATION_L10N_CHECK=0 |
michael@0 | 2 | |
michael@0 | 3 | . "$topsrcdir/build/mozconfig.common" |
michael@0 | 4 | |
michael@0 | 5 | # Use Clang as specified in manifest |
michael@0 | 6 | export CC="$topsrcdir/clang/bin/clang -fgnu89-inline" |
michael@0 | 7 | export CXX="$topsrcdir/clang/bin/clang++" |
michael@0 | 8 | export LLVM_SYMBOLIZER="$topsrcdir/clang/bin/llvm-symbolizer" |
michael@0 | 9 | |
michael@0 | 10 | # Mandatory flags for ASan |
michael@0 | 11 | export ASANFLAGS="-fsanitize=address -Dxmalloc=myxmalloc -fPIC" |
michael@0 | 12 | export CFLAGS="$ASANFLAGS" |
michael@0 | 13 | export CXXFLAGS="$ASANFLAGS" |
michael@0 | 14 | export LDFLAGS="-fsanitize=address" |
michael@0 | 15 | |
michael@0 | 16 | # Enable ASan specific code and build workarounds |
michael@0 | 17 | ac_add_options --enable-address-sanitizer |
michael@0 | 18 | |
michael@0 | 19 | # Mandatory options required for ASan builds (both on Linux and Mac) |
michael@0 | 20 | export MOZ_DEBUG_SYMBOLS=1 |
michael@0 | 21 | ac_add_options --enable-debug-symbols |
michael@0 | 22 | ac_add_options --disable-install-strip |
michael@0 | 23 | ac_add_options --disable-jemalloc |
michael@0 | 24 | ac_add_options --disable-crashreporter |
michael@0 | 25 | ac_add_options --disable-elf-hack |
michael@0 | 26 | |
michael@0 | 27 | # Avoid dependency on libstdc++ 4.7 |
michael@0 | 28 | ac_add_options --enable-stdcxx-compat |