Signed-off-by: Emil Velikov <emil.l.veli...@gmail.com> --- Unless someone object I would like to squash this patch with the previous one.
-Emil docs/autoconf.html | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/autoconf.html b/docs/autoconf.html index f27838f..c225659 100644 --- a/docs/autoconf.html +++ b/docs/autoconf.html @@ -141,14 +141,26 @@ assembly will not be used.</p> <dt><code>--host=</code></dt> <dd><p>By default, the build will compile code for the architecture that it's running on. In order to build Mesa on a x64-86 machine that is to run -on a i686, one would need to set the options to: +on a i686, one would need to set the options to:</p> <p><code>--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu</code></p> Note that these can vary from distribution to distribution. For more information check with the <a href="https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Specifying-Target-Triplets.html"> -autoconf manual</a>.</p> +autoconf manual</a>. + + +<p>In some cases a single compiler is capable of handling both architectures +in that case one would need to set the <code>CC,CXX</code> variables +appending the correct machine options. Seek your compiler documentation for +further information - +<a href="https://gcc.gnu.org/onlinedocs/gcc/Submodel-Options.html"> gcc +machine dependent options</a></p> + +<p>The following is the complete setup needed to compile on my Archlinux setup</p> + +<code>./configure CC="gcc -m32" CXX="g++ -m32" --build=i686-unknown-linux-gnu --host=i686-unknown-linux-gnu ...</code> </dd> </dl> -- 2.0.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev