Link with X11 explicitly

We are using X11 symbols directly like XFree() so we need to link
with it explicitly. Previously these symbols were being resolved
somehow by libGL, but apparently they are now hidden - good - in
the custom version we are using since 5e40f72b7.

Fixes #1005.
This commit is contained in:
Thiago Marcos P. Santos
2015-03-16 10:50:34 +02:00
parent 0c985c024b
commit d66b24f58f

4
configure vendored
View File

@@ -128,8 +128,8 @@ if [ ! -z ${GLFW_VERSION} ]; then
fi
if [ ${MASON_PLATFORM} == 'linux' ]; then
CONFIG+=" 'opengl_cflags%': $(quote_flags $(pkg-config gl --cflags)),"$LN
CONFIG+=" 'opengl_ldflags%': $(quote_flags $(pkg-config gl --libs)),"$LN
CONFIG+=" 'opengl_cflags%': $(quote_flags $(pkg-config gl x11 --cflags)),"$LN
CONFIG+=" 'opengl_ldflags%': $(quote_flags $(pkg-config gl x11 --libs)),"$LN
else
CONFIG+=" 'opengl_cflags%': $(quote_flags),"$LN
CONFIG+=" 'opengl_ldflags%': $(quote_flags),"$LN