Commit 7a6474d3 authored by Konstantin Kharlamov's avatar Konstantin Kharlamov Committed by Brian Paul

README: correct flags for 32-on-64 build

So far this is the only options I found to build 32-on-64. It supersedes
the prev. patch to README — turns out, replacing i386→x86 isn't enough.
The inconsistent results were because cmake retains options used for old
runs. This patch was tested by completely removing piglit, and git
cloning it again.

v2: (per Brian Paul comment) fix typos, and mention that it's enough
to remove CMakeCache.txt from the previous build.
Signed-off-by: Konstantin Kharlamov's avatarConstantine Charlamov <Hi-Angel@yandex.ru>
Supersedes: https://patchwork.freedesktop.org/patch/141700/Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
parent 33dec389
......@@ -88,8 +88,10 @@ Now build everything:
2.1 Cross Compiling
-------------------
On Linux, if cross-compiling a 32-bit build on a 64-bit host, then you must
invoke cmake with option "-DCMAKE_SYSTEM_PROCESSOR=i386".
On Linux, if cross-compiling a 32-bit build on a 64-bit host, first make sure
you didn't have CMakeCache.txt file left from 64-bit build (it would retain old
flags), then you must invoke cmake with options "-DCMAKE_SYSTEM_PROCESSOR=x86
-DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32".
2.2 Ubuntu
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment