mozconfig-linux-ppc64le 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. CROSS_COMPILE=1
  2. ac_add_options --enable-application=browser
  3. # Talospace recommends GCC instead of Clang.
  4. CC="/var/tmp/dist/gcc-cross/bin/powerpc64le-linux-gnu-gcc"
  5. CXX="/var/tmp/dist/gcc-cross/bin/powerpc64le-linux-gnu-g++"
  6. HOST_CC="/var/tmp/dist/gcc/bin/gcc"
  7. HOST_CXX="/var/tmp/dist/gcc/bin/g++"
  8. export LDFLAGS="-Wl,-rpath-link=/lib/powerpc64le-linux-gnu -Wl,-rpath-link=/usr/lib/powerpc64le-linux-gnu"
  9. ac_add_options --target=powerpc64le-linux-gnu
  10. ac_add_options --with-toolchain-prefix=powerpc64le-linux-gnu-
  11. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ppc64le
  12. mk_add_options MOZ_APP_DISPLAYNAME="Tor Browser"
  13. export MOZILLA_OFFICIAL=1
  14. # From Mozilla MDN "Compiling 32-bit Firefox on a Linux 64-bit OS" docs
  15. # Should fix "error: Can't find header fontconfig/fcfreetype.h"
  16. mk_add_options MOZ_TREE_FREETYPE=1
  17. ac_add_options --enable-official-branding
  18. # Let's support GTK3 for ESR60
  19. ac_add_options --enable-default-toolkit=cairo-gtk3
  20. ac_add_options --enable-tor-browser-update
  21. ac_add_options --enable-verify-mar
  22. ac_add_options --disable-tests
  23. ac_add_options --disable-debug
  24. ac_add_options --disable-crashreporter
  25. ac_add_options --disable-webrtc
  26. ac_add_options --disable-parental-controls
  27. # Let's make sure no preference is enabling either Adobe's or Google's CDM.
  28. # TODO: Firefox ESR 68 has a stupid bug. The --enable-eme flag is defined with
  29. # "when=eme_choices". eme_choices is defined as follows:
  30. # def eme_choices(target):
  31. # if (target.kernel in ('Darwin', 'WINNT', 'Linux') and
  32. # target.os not in ('Android', 'iOS') and
  33. # target.cpu in ('x86', 'x86_64')):
  34. # return ('widevine',)
  35. # if target.kernel == 'WINNT' and target.cpu == 'aarch64':
  36. # return ('widevine',)
  37. # Which excludes GNU/Linux/ppc64le. When the "when" condition for --enable-foo
  38. # isn't enabled, it's also not enabled for --disable-foo. So using
  39. # --disable-eme results in the error
  40. # "mozbuild.configure.options.InvalidOptionError: --disable-eme is not
  41. # available in this configuration". This means we have to omit --disable-eme.
  42. # Which means EME will stay disabled... UNTIL Mozilla implements EME for
  43. # GNU/Linux/ppc64le. At which point EME will silently enable itself in Tor Browser
  44. # unless the Tor devs carefully audit all merges from upstream to see if they
  45. # implement EME for GNU/Linux/ppc64le. Someone should report this to Mozilla and
  46. # get it fixed upstream.
  47. #ac_add_options --disable-eme
  48. ac_add_options --enable-proxy-bypass-protection
  49. # Bug 31448: ld.gold fails if we don't disable debug-symbols
  50. ac_add_options --disable-debug-symbols
  51. # Disable telemetry
  52. ac_add_options MOZ_TELEMETRY_REPORTING=
  53. # From Talospace
  54. # https://www.talospace.com/2021/08/firefox-91-on-power-fur-fowk.html
  55. # https://www.talospace.com/2021/07/firefox-90-on-power-and-jit-progress.html
  56. # https://www.talospace.com/2020/10/firefox-82-on-power-goes-pgo.html
  57. ac_add_options --enable-optimize="-O3 -mcpu=power9"
  58. ac_add_options --enable-linker=bfd