I am working with ff3.5.19. I build it with dbus disabled. Attached you find my current patch. This is my build environment:
Code:
Select all
export CC=/usr/nekoware/gcc-4.7/bin/gcc
export CXX=/usr/nekoware/gcc-4.7/bin/g++
export CFLAGS='-march=r12000 -mips4 -mabi=n32'
export CXXFLAGS='-march=r12000 -mips4 -mabi=n32 -fpermissive'
export CPPFLAGS='-I/usr/nekoware/include'
export LDFLAGS='-L/usr/nekowazre/lib'
export LIBS="-lfastm -lm -lpthread"
export PERL="/usr/nekoware/bin/perl"
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
Here comes the .mozconfig:
Code:
Select all
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-deb-static
ac_add_options --prefix=/opt/mozilla
ac_add_options --enable-application=browser
ac_add_options --disable-optimize
ac_add_options --enable-debug
ac_add_options --with-pthreads
ac_add_options --with-system-sqlite
ac_add_options --enable-tests
ac_add_options --enable-system-cairo
ac_add_options --disable-updater
ac_add_options --disable-update-channel
ac_add_options --disable-dbus
ac_add_options --disable-gnomevfs
ac_add_options --disable-gnomeui
ac_add_options --enable-plugins
ac_add_options --disable-accessibility
ac_add_options --disable-inspector-apis
ac_add_options --disable-pref-extensions
ac_add_options --disable-extensions
ac_add_options --disable-installer
ac_add_options --enable-official-branding
ac_add_options --disable-parental-controls
ac_add_options --disable-javaxpcom
ac_add_options --disable-safe-browsing
ac_add_options --disable-url-classifier
ac_add_options --disable-strip
ac_add_options --disable-install-strip
ac_add_options --disable-ogg
ac_add_options --disable-wave
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options MOZ_MAKE_FLAGS="-j12"
ac_add_options --enable-ipv6
ac_add_options --disable-crashreporter
ac_add_options --disable-xft
ac_add_options --enable-freetype2
ac_add_options --disable-jsd
ac_add_options --disable-shared
ac_add_options --enable-static
The ff3.0.19 build instructions are still working:
Build instructions:
Get the source code from:
ftp://ftp.mozilla.org/pub/firefox/relea ... ce.tar.bz2
extract it and apply the attached patch.
Get a current version of sqlite3:
http://www.sqlite.org/download.html
Copy sqlite3.c and sqlite3.h from current sqlite3 to mozilla/db/sqlite3/src
There may be a problem with signlib during build. Make sure there
are no shared libs in /usr/nekoware/lib/firefox-3.0.19 during build instead
you must have a firefox2 or seamonkey1 lib directory in your LIB search path.
Otherwise signlib may coredump.
set the environment and start the build:
gmake -f client.mk build
There is one assembler file in libfreebl you have to compile manually with gcc3.
cd security/nss/lib/freebl
gcc -x assembler-with-cpp -o /work/mozilla-1.9.1/ff-deb-static/nss/freebl/IRIX_SINGLE_SHLIB/mpi_mips.o -Wp,-P -Wp,-traditional-cpp -c mpi/mpi_mips.s