Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Passing CFLAGS, CXXFLAGS and LDFLAGS to Mozilla Firefox configure

46 views
Skip to first unread message

Stefan Fröberg

unread,
Jun 1, 2012, 10:42:28 AM6/1/12
to dev-apps...@lists.mozilla.org
Hello!

I would like to try ro passing the following environment variables to
Firefox configure and see if it builds.

CFLAGS="-Os -pipe -funit-at-a-time -D_FORTIFY_SOURCE=2
-fstack-protector-all"
CFXXFLAGS="${CFLAGS} -finline-visibility-hidden "
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,now -Wl,--hash-style=gnu"

What is the proper way of doing this?

My goal is to try to build as small (and safe) Firefox binary as
possible but still being fast enough for general x86 machines on Linux
platform.

Also:

I have this in .mozconfig

ac_add_options --enable-optimize

Should I leave it that way or change it into --enable-optimize=-Os to
make sure that everything in Firefox is as small as possible ?

What about that --enable-mobile-optimize configure switch ?
Does it have any use on desktop or is it usefull for smartphones only ?


Best regards:
Stefan Fröberg


0 new messages