dri: make unresolved symbol test link work even without a libGL.so
authorLuca Barbieri <luca@luca-barbieri.com>
Tue, 23 Mar 2010 20:10:07 +0000 (21:10 +0100)
committerLuca Barbieri <luca@luca-barbieri.com>
Tue, 23 Mar 2010 20:32:09 +0000 (21:32 +0100)
commit7e246e6aa63979d53731a591f4caee3651c1d96b
tree634192da3144fd92f074183ae35041a19aa78e87
parente725ef171b5a4d5425461f237d9ccab223806913
dri: make unresolved symbol test link work even without a libGL.so

Currently the test link uses -lGL to define the glapi symbols.

This makes it impossible to build DRI drivers on systems without
Mesa installed and without building the libGL from the Mesa tree
first.

Some automated build systems trigger this problem.

This commit removes -lGL and instead adds a dummy implementation of
glapi to dri_test.c

This, along with Kristian's commit, should fix all known regressions
due to the addition of unresolved symbol checking.
src/gallium/winsys/drm/Makefile.template
src/mesa/drivers/dri/Makefile.template
src/mesa/drivers/dri/common/dri_test.c