From 3acc8265200295265b476222299a013791050b73 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 25 Oct 2010 13:52:58 -0700 Subject: Fix build on systems where "python" is python 3. 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. Signed-off-by: Xavier Chantry Signed-off-by: Matthew William Cox Signed-off-by: Kenneth Graunke --- src/glsl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glsl/Makefile') diff --git a/src/glsl/Makefile b/src/glsl/Makefile index 83869b1d84..4cfecb130f 100644 --- a/src/glsl/Makefile +++ b/src/glsl/Makefile @@ -178,7 +178,7 @@ builtins: builtin_function.cpp builtins/profiles/* builtins/ir/* builtins/tools/ cp builtins/tools/builtin_function.cpp . make glsl_compiler @echo Regenerating builtin_function.cpp... - ./builtins/tools/generate_builtins.py > builtin_function.cpp + $(PYTHON2) $(PYTHON_FLAGS) builtins/tools/generate_builtins.py > builtin_function.cpp @echo Rebuilding the real compiler... make glsl_compiler -- cgit v1.2.3