it seems osmesa depends on GL and we need to add -lGL

so compilation works with --as-needed
This commit is contained in:
yabause 2009-04-26 06:46:31 +00:00
parent ada2d9ce12
commit 7704d2fd80
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ AC_ARG_ENABLE([osmesa],
if test "x$osmesa" = "xyes" ; then if test "x$osmesa" = "xyes" ; then
AC_CHECK_LIB(dl, main) AC_CHECK_LIB(dl, main)
AC_CHECK_LIB([GL], main)
AC_CHECK_LIB(OSMesa, main,[ AC_CHECK_LIB(OSMesa, main,[
useosmesa=yes useosmesa=yes
AC_DEFINE(HAVE_LIBOSMESA) AC_DEFINE(HAVE_LIBOSMESA)