Tweak text concerning 686 optimization in seamonkey and firefox.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@14864 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Bruce Dubbs 2014-11-09 22:45:27 +00:00
parent 637f310171
commit 0f1ea400d6
2 changed files with 13 additions and 24 deletions

View File

@ -228,16 +228,18 @@ ac_add_options --with-system-zlib
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
EOF</userinput></screen>
<para>
There is a problem in i686 systems, when build with
<application>gcc</application> ranging from 4.8 to 4.9.1, and using the
switch <quote>--enable-optimize</quote>. You have two alternatives, best
one being the upgrade of <application>gcc</application> to version 4.9.2,
because that switch implies better perfomance and smaller binaries.
However, if you do not wish to upgrade gcc, disable the switch with:
<note><para>
There is a problem on i686 systems when building
<application>Firefox</application> with <application>gcc</application>
versions ranging from 4.8 to 4.9.1 and using the switch
<quote>--enable-optimize</quote>. There are two alternatives. The best
one is to upgrade <application>gcc</application> to version 4.9.2 or later
because it will give better perfomance and smaller binaries. However, if
you do not wish to upgrade gcc, reduce the level of optimization with:
</para>
<screen><userinput>test $(uname -m) = "i686" &amp;&amp; sed -i 's/enable-optimize/disable-optimize/' mozconfig || true</userinput></screen>
<screen><userinput>test $(uname -m) = "i686" &amp;&amp; sed -i 's/enable-optimize/&amp;=-O2/' mozconfig || true</userinput></screen>
</note>
<para>
Compile <application>Firefox</application> by issuing the following
@ -287,13 +289,6 @@ ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser</userin
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<command>test $(uname -m) = "i686" &amp;&amp; sed ...</command>:
On this version of seamonkey, an old bug has reappeared in 32-bit builds.
With optimization, the install fails<!-- with a Python error-->. This
command will fix i686 builds and preserve the optimization on x86_64.
</para>
<para>
<command>make -f client.mk ...</command>: Mozilla products are packaged to
allow the use of a configuration file which can be used to pass the

View File

@ -241,17 +241,18 @@ ac_add_options --with-system-zlib
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/moz-build-dir</literal>
EOF</userinput></screen>
<para>
<note><para>
There is a problem on i686 systems when building
<application>SeaMonkey</application> with <application>gcc</application>
versions ranging from 4.8 to 4.9.1 and using the switch
<quote>--enable-optimize</quote>. There are two alternatives. The best
one is to upgrade <application>gcc</application> to version 4.9.2 or later,
one is to upgrade <application>gcc</application> to version 4.9.2 or later
because it will give better perfomance and smaller binaries. However, if
you do not wish to upgrade gcc, reduce the level of optimization with:
</para>
<screen><userinput>test $(uname -m) = "i686" &amp;&amp; sed -i 's/enable-optimize/&amp;=-O2/' mozconfig || true</userinput></screen>
</note>
<note><para>
If you are compiling <application>SeaMonkey</application> in chroot, make
@ -308,13 +309,6 @@ cp -v moz-build-dir/mozilla/dist/man/man1/seamonkey.1 /usr/share/man/man1</useri
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<command>test $(uname -m) = "i686" &amp;&amp; sed ...</command>:
On this version of seamonkey, an old bug has reappeared in 32-bit builds.
With optimization, the install fails<!-- with a Python error-->. This
command will fix i686 builds and preserve the optimization on x86_64.
</para>
<para>
<command>mkdir -vp mozilla/moz-build-dir</command>: fixes a build failure
of Makefile at the beginning of the build, where a file cannot be found.