mozconfig-linux-arm 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. CROSS_COMPILE=1
  2. ac_add_options --enable-application=browser
  3. CC="clang -B /var/tmp/dist/binutils/bin"
  4. CXX="clang++ -B /var/tmp/dist/binutils/bin"
  5. HOST_CC="clang"
  6. HOST_CXX="clang++"
  7. # Are all of these LDFLAGS things actually needed?
  8. FIX_LINK_LDFLAGS="-Wl,-rpath-link=/lib/arm-linux-gnueabihf -Wl,-rpath-link=/usr/lib/arm-linux-gnueabihf"
  9. export LDFLAGS="$FIX_LINK_LDFLAGS"
  10. LDFLAGS="$FIX_LINK_LDFLAGS"
  11. export WRAP_LDFLAGS="$FIX_LINK_LDFLAGS"
  12. mk_add_options LDFLAGS="$FIX_LINK_LDFLAGS"
  13. ac_add_options --target=arm-linux-gnueabihf
  14. ac_add_options --with-toolchain-prefix=arm-linux-gnueabihf-
  15. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-arm
  16. # XXX: gold and lld break when linking libxul, resort to bfd
  17. ac_add_options --enable-linker=bfd
  18. mk_add_options MOZ_APP_DISPLAYNAME="Tor Browser"
  19. mk_add_options MOZILLA_OFFICIAL=1
  20. mk_add_options BUILD_OFFICIAL=1
  21. # From Mozilla MDN "Compiling 32-bit Firefox on a Linux 64-bit OS" docs
  22. # Should fix "error: Can't find header fontconfig/fcfreetype.h"
  23. mk_add_options MOZ_TREE_FREETYPE=1
  24. ac_add_options --enable-official-branding
  25. # Let's support GTK3 for ESR60
  26. ac_add_options --enable-default-toolkit=cairo-gtk3
  27. ac_add_options --enable-tor-browser-update
  28. ac_add_options --enable-signmar
  29. ac_add_options --enable-verify-mar
  30. ac_add_options --disable-tests
  31. ac_add_options --disable-debug
  32. ac_add_options --disable-debug-symbols
  33. ac_add_options --disable-crashreporter
  34. ac_add_options --disable-webrtc
  35. # Let's make sure no preference is enabling either Adobe's or Google's CDM.
  36. # TODO: Firefox ESR 68 has a stupid bug. The --enable-eme flag is defined with
  37. # "when=eme_choices". eme_choices is defined as follows:
  38. # def eme_choices(target):
  39. # if (target.kernel in ('Darwin', 'WINNT', 'Linux') and
  40. # target.os not in ('Android', 'iOS') and
  41. # target.cpu in ('x86', 'x86_64')):
  42. # return ('widevine',)
  43. # if target.kernel == 'WINNT' and target.cpu == 'aarch64':
  44. # return ('widevine',)
  45. # Which excludes GNU/Linux/ARM. When the "when" condition for --enable-foo
  46. # isn't enabled, it's also not enabled for --disable-foo. So using
  47. # --disable-eme results in the error
  48. # "mozbuild.configure.options.InvalidOptionError: --disable-eme is not
  49. # available in this configuration". This means we have to omit --disable-eme.
  50. # Which means EME will stay disabled... UNTIL Mozilla implements EME for
  51. # GNU/Linux/ARM. At which point EME will silently enable itself in Tor Browser
  52. # unless the Tor devs carefully audit all merges from upstream to see if they
  53. # implement EME for GNU/Linux/ARM. Someone should report this to Mozilla and
  54. # get it fixed upstream.
  55. #ac_add_options --disable-eme
  56. ac_add_options --enable-proxy-bypass-protection
  57. # Architecture flags for armhf
  58. ac_add_options --with-arch=armv7-a
  59. ac_add_options --with-fpu=vfpv3-d16
  60. ac_add_options --with-float-abi=hard
  61. ac_add_options --with-thumb=yes
  62. # From Arch Linux ARM for ESR68
  63. # https://github.com/archlinuxarm/PKGBUILDs/blob/001eccbae9dcac00b6bf29b032f28786aba9afdd/extra/firefox/PKGBUILD
  64. ac_add_options --enable-optimize="-O2"
  65. ac_add_options --disable-elf-hack
  66. ac_add_options --disable-av1