From 1ad95343373bde5b37237c5649a2b0a7dfab4801 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 24 Feb 2014 14:20:36 +0000 Subject: gallium/targets: resolve undefined reference to pipe_loader_sw_probe_dri With the introduction of the pipe_loader_sw_probe_dri helper we require the sw/dri winsys during linking stage despite it being unused by any of the targets. This will cause a minor increase in the resulting library which will be cleaned up via linker options with upcoming patches. v2: Link with libswdri.la only when available. Reported-and-tested-by: Tom Stellard (v1) Signed-off-by: Emil Velikov --- src/gallium/targets/xa/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/targets/xa') diff --git a/src/gallium/targets/xa/Makefile.am b/src/gallium/targets/xa/Makefile.am index 7ab57ffec56..1cdb21b38b0 100644 --- a/src/gallium/targets/xa/Makefile.am +++ b/src/gallium/targets/xa/Makefile.am @@ -48,6 +48,11 @@ libxatracker_la_LIBADD = \ $(LIBUDEV_LIBS) \ $(LIBDRM_LIBS) +if HAVE_DRI +libxatracker_la_LIBADD += \ + $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la +endif + if NEED_PIPE_LOADER_XLIB libxatracker_la_LIBADD += \ $(top_builddir)/src/gallium/winsys/sw/xlib/libws_xlib.la \ -- cgit v1.2.3