anv: Link to libX11-xcb only when unneeded
authorChad Versace <chadversary@chromium.org>
Thu, 8 Sep 2016 03:07:50 +0000 (20:07 -0700)
committerChad Versace <chadversary@chromium.org>
Thu, 8 Sep 2016 16:24:30 +0000 (09:24 -0700)
commitbad80c26e794d690914e7b16a29633e5f5a92a60
tree20eff63a232735b4b67c0c6af6ce0eeb4c9cabdf
parent7514e326f89843fae75a385fee25809a852ca94d
anv: Link to libX11-xcb only when unneeded

The Makefile unconditionally linked libX11-xcb into libvulkan_intel.so.
But it's needed only if HAVE_PLATFORM_X11.

Fixes build of libvulkan_intel.so on Chromium OS, which has no X11
libraries.

Fixes: 71258e9462c ("anv/x11: Add support for Xlib platform")
Cc: Kevin Strasser <kevin.strasser@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/intel/vulkan/Makefile.am