OSDN Git Service

make: Don't use builtin_stubs.cpp for standalone GLSL compiler.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 20 Sep 2011 06:06:53 +0000 (23:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 21 Sep 2011 01:21:45 +0000 (18:21 -0700)
commitdbae4960831d319ff2f536d88dc3104d9e031dfa
tree5ed86012b68643e4b169bf9b8106931512923ccc
parentb152a239b17c3df3b4cd1090bd70460bde16e5ab
make: Don't use builtin_stubs.cpp for standalone GLSL compiler.

builtin_stubs.cpp is only supposed to be used for builtin_compiler.  It
contains a stub version of _mesa_glsl_initialize_functions() that does
nothing.

libglsl.a already contains builtin_function.cpp, the generated file that
contains a version of _mesa_glsl_initialize_functions() that actually
initializes all the built-in functions.

By mistakenly linking to builtin_stubs, glsl_compiler and glsl_test are
unable to compile any shaders that use built-in functions.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/Makefile