[Mesa-dev] [PATCH] build: resolve EGL link failure

Jan Engelhardt jengelh at inai.de
Wed Oct 24 12:40:17 PDT 2012


Without this, linking weston fails with:

libEGL.so: undefined reference to "wl_display_sync"
[and other wl_ functions]
---
 src/egl/drivers/dri2/Makefile.am |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/egl/drivers/dri2/Makefile.am b/src/egl/drivers/dri2/Makefile.am
index 45f7dfa..53cbb6e 100644
--- a/src/egl/drivers/dri2/Makefile.am
+++ b/src/egl/drivers/dri2/Makefile.am
@@ -54,6 +54,7 @@ endif
 
 if HAVE_EGL_PLATFORM_WAYLAND
 libegl_dri2_la_SOURCES += platform_wayland.c
+libegl_dri2_la_LIBADD += $(WAYLAND_LIBS)
 AM_CFLAGS += -DHAVE_WAYLAND_PLATFORM
 AM_CFLAGS += $(WAYLAND_CFLAGS)
 endif
-- 
1.7.10.4



More information about the mesa-dev mailing list