mozconfig-osx-x86_64 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. TOOLCHAIN_DIR=/var/tmp/dist/macosx-toolchain
  2. # ld needs libLTO.so from llvm
  3. mk_add_options "export LD_LIBRARY_PATH=$TOOLCHAIN_DIR/clang/lib"
  4. CROSS_CCTOOLS_PATH=$TOOLCHAIN_DIR/cctools
  5. CROSS_SYSROOT=$TOOLCHAIN_DIR/MacOSX10.11.sdk
  6. CROSS_PRIVATE_FRAMEWORKS=$CROSS_SYSROOT/System/Library/PrivateFrameworks
  7. HARDENING_FLAGS="-Werror=format -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2"
  8. FLAGS="-target x86_64-apple-darwin11 -B $CROSS_CCTOOLS_PATH/bin -isysroot $CROSS_SYSROOT $HARDENING_FLAGS"
  9. export CC="$TOOLCHAIN_DIR/clang/bin/clang $FLAGS"
  10. export CXX="$TOOLCHAIN_DIR/clang/bin/clang++ $FLAGS"
  11. export LLVMCONFIG=$TOOLCHAIN_DIR/clang/bin/llvm-config
  12. export LDFLAGS="-Wl,-syslibroot,$CROSS_SYSROOT -Wl,-pie"
  13. export BINDGEN_CFLAGS="$FLAGS"
  14. export TOOLCHAIN_PREFIX=$CROSS_CCTOOLS_PATH/bin/x86_64-apple-darwin11-
  15. export DSYMUTIL="$TOOLCHAIN_DIR/clang/bin/dsymutil"
  16. export HOST_CFLAGS="-g"
  17. export HOST_CXXFLAGS="-g"
  18. export HOST_LDFLAGS="-g"
  19. ac_add_options --target=x86_64-apple-darwin11
  20. ac_add_options --with-macos-sdk=$CROSS_SYSROOT
  21. ac_add_options --with-macos-private-frameworks=$CROSS_PRIVATE_FRAMEWORKS
  22. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-macos
  23. mk_add_options MOZ_APP_DISPLAYNAME="Tor Browser"
  24. export MOZILLA_OFFICIAL=1
  25. ac_add_options --enable-application=browser
  26. ac_add_options --enable-strip
  27. ac_add_options --enable-official-branding
  28. ac_add_options --enable-optimize
  29. ac_add_options --disable-debug
  30. ac_add_options --enable-tor-browser-data-outside-app-dir
  31. ac_add_options --enable-tor-browser-update
  32. ac_add_options --enable-signmar
  33. ac_add_options --enable-verify-mar
  34. ac_add_options --disable-crashreporter
  35. ac_add_options --disable-webrtc
  36. ac_add_options --disable-tests
  37. # Let's make sure no preference is enabling either Adobe's or Google's CDM.
  38. ac_add_options --disable-eme
  39. ac_add_options --enable-proxy-bypass-protection
  40. # Disable telemetry
  41. ac_add_options MOZ_TELEMETRY_REPORTING=