

Code: Select all
flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib fdo-mime mozextension autotools

Code: Select all
none /home/hechacker1/.mozilla/firefox/33pms5do.default/Cache tmpfs rw,user,uid=1000
Code: Select all
elif is-flag -Os; then
mozconfig_annotate "from CFLAGS" --enable-optimize=-OsCode: Select all
==========================================================
Building mozilla-firefox-1.0.7-r4 with the following configuration
...
--enable-optimize=-Os from CFLAGS
Code: Select all
i686-pc-linux-gnu-g++ -o nsImageGTK.o -c -DNATIVE_THEME_SUPPORT -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DUSE_POSTSCRIPT -I../.. -I./. -I./.. -I./../shared -I./../freetype -I./../x11shared -I/usr/include/freetype2 -I/usr/include/freetype2/config -I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/widget -I../../../dist/include/view -I../../../dist/include/util -I../../../dist/include/pref -I../../../dist/include/uconv -I../../../dist/include/unicharutil -I../../../dist/include/locale -I../../../dist/include/necko -I../../../dist/include/content -I../../../dist/include/dom -I../../../dist/include/layout -I../../../dist/include/imglib2 -I../../../dist/include/gfx -I../../../dist/include -I/var/tmp/portage/mozilla-firefox-1.0.7-r4/work/mozilla/dist/include/nspr -fPIC -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\" -fno-rtti -fno-handle-exceptions -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=athlon-xp -pipe -Wno-deprecated -Wno-return-type -w -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -Os -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\" -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsImageGTK.pp nsImageGTK.cpp
In file included from nsGfxFactoryGTK.cpp:66:
nsFontMetricsPango.h:47:25: pango/pango.h: No such file or directory
In file included from nsGfxFactoryGTK.cpp:66:
nsFontMetricsPango.h:235: error: ISO C++ forbids declaration of `PangoFontDescription' with no type
nsFontMetricsPango.h:235: error: expected `;' before '*' token
nsFontMetricsPango.h:236: error: ISO C++ forbids declaration of `PangoContext' with no type
nsFontMetricsPango.h:236: error: expected `;' before '*' token
nsFontMetricsPango.h:237: error: ISO C++ forbids declaration of `PangoContext' with no type
nsFontMetricsPango.h:237: error: expected `;' before '*' token
nsFontMetricsPango.h:238: error: ISO C++ forbids declaration of `PangoContext' with no type
nsFontMetricsPango.h:238: error: expected `;' before '*' token
nsFontMetricsPango.h:239: error: ISO C++ forbids declaration of `PangoAttrList' with no type
nsFontMetricsPango.h:239: error: expected `;' before '*' token
nsFontMetricsPango.h:274: error: `PangoLayoutLine' has not been declared
nsFontMetricsPango.h:275: error: ISO C++ forbids declaration of `aLine' with no type
nsFontMetricsPango.h:287: error: `PangoLayout' has not been declared
nsFontMetricsPango.h:287: error: ISO C++ forbids declaration of `aLayout' with no type
gmake[4]: *** [nsGfxFactoryGTK.o] Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[4]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.0.7-r4/work/mozilla/gfx/src/gtk'
Code: Select all
CFLAGS="-march=whatever -Os -pipe"HecHacker1 wrote:I also gave up on trying to get firefox to try and store everything in memory. The only solution is to use tmpfs and mount it at boot using my /etc/fstab:
just point it to where firefox stores your cache (check using about:cache) and set the correct user id for your user. Now my hard drive can finally sleep. And page loading is tremendously faster. will keep you updatedCode: Select all
none /home/hechacker1/.mozilla/firefox/33pms5do.default/Cache tmpfs rw,user,uid=1000
Great tip. I'm having the same problem with firefox (even though I use laptop-mode-tools to get the disk to sleep anyways), this is definitely something I'm gonna do. My idea is to just copy the whole profile into a tmpfs drive at boot and copy it back at shutdown. Hmm.. might actually use a tgz-file for that.HecHacker1 wrote:I also gave up on trying to get firefox to try and store everything in memory. The only solution is to use tmpfs and mount it at boot using my /etc/fstab[...]
Now my hard drive can finally sleep. And page loading is tremendously faster.[...]
I don't think it strips all CFLAGs, but I'd have to check. It will definately strip out known, problematic CFLAGs.KD-120RD wrote:@cynric: I did just that. Maybe, by default, the the strict restrictions of the mozilla devs don't allow any cflags that blow your binary?

