mozconfig-linux-arm 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # Based on Win64 mozconfig
  2. CROSS_COMPILE=1
  3. ac_add_options --enable-application=browser
  4. # Based on Win64 mozconfig
  5. ac_add_options --target=arm-linux-gnueabihf
  6. ac_add_options --with-toolchain-prefix=arm-linux-gnueabihf-
  7. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-arm
  8. mk_add_options MOZ_APP_DISPLAYNAME="Tor Browser"
  9. mk_add_options MOZILLA_OFFICIAL=1
  10. mk_add_options BUILD_OFFICIAL=1
  11. # From Mozilla MDN "Cross-compiling Mozilla" docs
  12. ac_add_options --prefix=/var/tmp/dist/gcc-cross/arm-linux-gnueabihf
  13. # From Mozilla MDN "Compiling 32-bit Firefox on a Linux 64-bit OS" docs
  14. # Should fix "error: Can't find header fontconfig/fcfreetype.h"
  15. #ac_add_options --disable-freetypetest
  16. #mk_add_options USE_FC_FREETYPE=0
  17. #ac_add_options --disable-pango
  18. # Trying random stuff here
  19. mk_add_options MOZ_TREE_FREETYPE=1
  20. # From https://wiki.mozilla.org/Mobile/Fennec/RaspberryPi/mozconfig2
  21. export PKG_CONFIG_PATH=/var/tmp/dist/gcc-cross/arm-linux-gnueabihf/pkgconfig
  22. #export CPPFLAGS="-I/var/tmp/dist/gcc-cross/arm-linux-gnueabihf/include -I/usr/include -I/var/tmp/dist/gcc-cross/arm-linux-gnueabihf/include"
  23. #export CFLAGS="-I/usr/include/arm-linux-gnueabihf"
  24. #mk_add_options CPPFLAGS="$CPPFLAGS"
  25. #mk_add_options CFLAGS=$CFLAGS
  26. # From https://wiki.mozilla.org/Mobile/Fennec/RaspberryPi/mozconfig2
  27. #FIX_LINK_LDFLAGS="-L/lib/arm-linux-gnueabihf -Wl,-rpath-link=/lib/arm-linux-gnueabihf"
  28. #FIX_LINK_LDFLAGS="$FIX_LINK_LDFLAGS -L/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link=/usr/lib/arm-linux-gnueabihf"
  29. #export LDFLAGS="$FIX_LINK_LDFLAGS"
  30. #LDFLAGS="$FIX_LINK_LDFLAGS"
  31. #export WRAP_LDFLAGS="$FIX_LINK_LDFLAGS"
  32. #mk_add_options LDFLAGS="$FIX_LINK_LDFLAGS"
  33. # TODO: what does this do???
  34. #ac_add_options --host=i686-linux-gnu
  35. # From https://wiki.mozilla.org/Mobile/Fennec/RaspberryPi/mozconfig2
  36. #export ac_cv_have_usable_wchar_option_v2="no"
  37. #ac_add_options --enable-mobile-optimize
  38. #ac_add_options --enable-system-ffi
  39. ac_add_options --enable-optimize
  40. #ac_add_options --disable-optimize
  41. ac_add_options --enable-official-branding
  42. # Let's support GTK2 for ESR52
  43. ac_add_options --enable-default-toolkit=cairo-gtk2
  44. ac_add_options --enable-tor-browser-update
  45. ac_add_options --enable-signmar
  46. ac_add_options --enable-verify-mar
  47. ac_add_options --disable-strip
  48. ac_add_options --disable-install-strip
  49. ac_add_options --disable-tests
  50. ac_add_options --disable-debug
  51. ac_add_options --disable-maintenance-service
  52. ac_add_options --disable-crashreporter
  53. ac_add_options --disable-webrtc
  54. # Let's make sure no preference is enabling either Adobe's or Google's CDM.
  55. ac_add_options --disable-eme
  56. #ac_add_options --disable-ctypes
  57. # From https://wiki.mozilla.org/Mobile/Fennec/RaspberryPi/mozconfig2
  58. #ac_add_options --disable-elf-hack
  59. #ac_add_options --enable-libjpeg-turbo
  60. # From https://wiki.mozilla.org/Mobile/Fennec/RaspberryPi/mozconfig2
  61. #ac_add_options --with-arm-kuser
  62. #ac_add_options --with-thumb=toolchain-default
  63. #ac_add_options --with-arch=armv6
  64. #ac_add_options --with-float-abi=hard
  65. #ac_add_options --with-thumb=no
  66. #ac_add_options --with-fpu=vfp
  67. # From https://archlinuxarm.org/packages/armv7h/firefox/files/PKGBUILD
  68. ac_add_options --enable-optimize="-g -O2 -fno-schedule-insns"
  69. ac_add_options --disable-stylo