mozconfig-osx-x86_64 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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/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 CPP="$TOOLCHAIN_DIR/clang/bin/clang $FLAGS -E"
  12. export LLVMCONFIG=$TOOLCHAIN_DIR/clang/bin/llvm-config
  13. export LDFLAGS="-Wl,-syslibroot,$CROSS_SYSROOT -Wl,-dead_strip -Wl,-pie"
  14. export BINDGEN_CFLAGS="$FLAGS"
  15. export TOOLCHAIN_PREFIX=$CROSS_CCTOOLS_PATH/bin/x86_64-apple-darwin11-
  16. export DSYMUTIL="$TOOLCHAIN_DIR/clang/bin/llvm-dsymutil"
  17. export HOST_CC="$TOOLCHAIN_DIR/clang/bin/clang"
  18. export HOST_CXX="$TOOLCHAIN_DIR/clang/bin/clang++"
  19. export HOST_CPP="$TOOLCHAIN_DIR/clang/bin/clang -E"
  20. export HOST_CFLAGS="-g"
  21. export HOST_CXXFLAGS="-g"
  22. export HOST_LDFLAGS="-g"
  23. ac_add_options --target=x86_64-apple-darwin
  24. ac_add_options --with-macos-private-frameworks=$CROSS_PRIVATE_FRAMEWORKS
  25. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-macos
  26. mk_add_options MOZ_APP_DISPLAYNAME="Tor Browser"
  27. mk_add_options MOZILLA_OFFICIAL=1
  28. export MOZILLA_OFFICIAL=1
  29. mk_add_options BUILD_OFFICIAL=1
  30. ac_add_options --enable-application=browser
  31. ac_add_options --enable-strip
  32. ac_add_options --enable-official-branding
  33. ac_add_options --enable-optimize
  34. ac_add_options --disable-debug
  35. ac_add_options --enable-tor-browser-data-outside-app-dir
  36. ac_add_options --enable-tor-browser-update
  37. ac_add_options --enable-signmar
  38. ac_add_options --enable-verify-mar
  39. ac_add_options --disable-crashreporter
  40. ac_add_options --disable-maintenance-service
  41. ac_add_options --disable-webrtc
  42. ac_add_options --disable-tests
  43. # Let's make sure no preference is enabling either Adobe's or Google's CDM.
  44. ac_add_options --disable-eme
  45. # ac_add_options --disable-ctypes