[Mesa-dev] [PATCH] Fix build on systems where "python" is python 3.

Brian Paul brian.e.paul at gmail.com
Mon Oct 25 19:34:31 PDT 2010

On Mon, Oct 25, 2010 at 2:54 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> First, it changes autoconf to use a "python2" binary when available,
> rather than plain "python" (which is ambiguous).  Secondly, it changes
> the Makefiles to use $(PYTHON) $(PYTHON_FLAGS) rather than calling
> python directly.  Finally, it removes the second -O from PYTHON_FLAGS,
> as it triggers docstring stripping which breaks u_format_srgb.py.
> Signed-off-by: Xavier Chantry <chantry.xavier at gmail.com>
> Signed-off-by: Matthew William Cox <matt at mattcox.ca>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
> This is an amalgamation of Xavier and Matthew's prior patches to the list
> to fix the build on systems where /usr/bin/python isn't python 2, as well
> as my own patch to do likewise for src/glsl.

I tested the patch here - worked fine.


More information about the mesa-dev mailing list