mozconfig-osx-x86_64 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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-darwin -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-darwin-
  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-darwin
  20. export MACOS_SDK_DIR=$CROSS_SYSROOT
  21. export MACOS_PRIVATE_FRAMEWORKS_DIR=$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 --enable-rust-simd
  30. ac_add_options --disable-debug
  31. ac_add_options --enable-tor-browser-data-outside-app-dir
  32. ac_add_options --enable-tor-browser-update
  33. ac_add_options --enable-verify-mar
  34. ac_add_options --disable-crashreporter
  35. ac_add_options --disable-webrtc
  36. ac_add_options --disable-parental-controls
  37. ac_add_options --disable-tests
  38. # Let's make sure no preference is enabling either Adobe's or Google's CDM.
  39. ac_add_options --disable-eme
  40. ac_add_options --enable-proxy-bypass-protection
  41. # Disable telemetry
  42. ac_add_options MOZ_TELEMETRY_REPORTING=