Personal tools

Mobile/Fennec/RaspberryPi/mozconfig2

From MozillaWiki

Jump to: navigation, search

Alternate mozconfig for building Firefox for Raspberry Pi (uses gtk instead of Qt, tries to be as close as possible to standard Firefox Linux buid):

mk_add_options MOZ_OBJDIR="@TOPSRCDIR@/../obj-rasppi"

export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig
export CPPFLAGS="-I/usr/include/arm-linux-gnueabihf"
export CFLAGS="-I/usr/include/arm-linux-gnueabihf"
mk_add_options  CPPFLAGS=$CPPFLAGS
mk_add_options  CFLAGS=$CFLAGS

FIX_LINK_LDFLAGS="-L/lib/arm-linux-gnueabihf -Wl,-rpath-link=/lib/arm-linux-gnueabihf"
FIX_LINK_LDFLAGS="$FIX_LINK_LDFLAGS -L/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link=/usr/lib/arm-linux-gnueabihf"
export LDFLAGS="$FIX_LINK_LDFLAGS"
LDFLAGS="$FIX_LINK_LDFLAGS"
export WRAP_LDFLAGS="$FIX_LINK_LDFLAGS"
mk_add_options LDFLAGS="$FIX_LINK_LDFLAGS"

export ac_cv_have_usable_wchar_option_v2="no"
ac_add_options --disable-tests
ac_add_options --enable-mobile-optimize
ac_add_options --enable-optimize
ac_add_options --enable-system-ffi

export MOZ_DEBUG_SYMBOLS=1
ac_add_options --enable-debug-symbols="-gdwarf-2"

ac_add_options --disable-elf-hack
ac_add_options --enable-libjpeg-turbo

ac_add_options --with-arm-kuser
ac_add_options --with-thumb=toolchain-default
ac_add_options --with-arch=armv6
ac_add_options --with-float-abi=hard
ac_add_options --with-thumb=no
ac_add_options --with-fpu=vfp

mk_add_options MOZ_MAKE_FLAGS="-j6"