mozconfig-osx-x86_64 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # ld needs libLTO.so from llvm
  2. mk_add_options "export LD_LIBRARY_PATH=/var/tmp/dist/macosx-toolchain/clang/lib"
  3. TOOLCHAIN_DIR=/var/tmp/dist/macosx-toolchain
  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-darwin10 -mlinker-version=136 -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 TOOLCHAIN_PREFIX=$CROSS_CCTOOLS_PATH/bin/x86_64-apple-darwin10-
  15. #TODO: bug 1184202 - would be nice if these could be detected with TOOLCHAIN_PREFIX automatically
  16. export AR=${TOOLCHAIN_PREFIX}ar
  17. export RANLIB=${TOOLCHAIN_PREFIX}ranlib
  18. export STRIP=${TOOLCHAIN_PREFIX}strip
  19. export OTOOL=${TOOLCHAIN_PREFIX}otool
  20. export DSYMUTIL="$TOOLCHAIN_DIR/clang/bin/llvm-dsymutil"
  21. export HOST_CC="$TOOLCHAIN_DIR/clang/bin/clang"
  22. export HOST_CXX="$TOOLCHAIN_DIR/clang/bin/clang++"
  23. export HOST_CPP="$TOOLCHAIN_DIR/clang/bin/clang -E"
  24. export HOST_CFLAGS="-g"
  25. export HOST_CXXFLAGS="-g"
  26. export HOST_LDFLAGS="-g"
  27. ac_add_options --target=x86_64-apple-darwin
  28. ac_add_options --with-macos-private-frameworks=$CROSS_PRIVATE_FRAMEWORKS
  29. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-macos
  30. mk_add_options MOZ_APP_DISPLAYNAME="Tor Browser"
  31. mk_add_options MOZILLA_OFFICIAL=1
  32. mk_add_options BUILD_OFFICIAL=1
  33. ac_add_options --enable-application=browser
  34. ac_add_options --enable-strip
  35. ac_add_options --enable-official-branding
  36. ac_add_options --enable-optimize
  37. ac_add_options --disable-debug
  38. ac_add_options --enable-tor-browser-data-outside-app-dir
  39. ac_add_options --enable-tor-browser-update
  40. ac_add_options --enable-signmar
  41. ac_add_options --enable-verify-mar
  42. ac_add_options --disable-crashreporter
  43. ac_add_options --disable-maintenance-service
  44. ac_add_options --disable-webrtc
  45. ac_add_options --disable-tests
  46. # Let's make sure no preference is enabling either Adobe's or Google's CDM.
  47. ac_add_options --disable-eme
  48. # ac_add_options --disable-ctypes