Use $GL_LIBS instead of -lGL for linking
-lGL presumes that the GL library is in the system path, while $GL_LIBS is auto-detected. Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
f348935e7d
commit
8fcf82cbf0
|
@ -1075,7 +1075,7 @@ if test "x$GLX" = xyes; then
|
||||||
AC_SUBST(XLIB_CFLAGS)
|
AC_SUBST(XLIB_CFLAGS)
|
||||||
AC_DEFINE(GLXEXT, 1, [Build GLX extension])
|
AC_DEFINE(GLXEXT, 1, [Build GLX extension])
|
||||||
GLX_LIBS='$(top_builddir)/glx/libglx.la'
|
GLX_LIBS='$(top_builddir)/glx/libglx.la'
|
||||||
GLX_SYS_LIBS="$GLX_SYS_LIBS -lGL"
|
GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS"
|
||||||
else
|
else
|
||||||
GLX=no
|
GLX=no
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue