gbm: Link to libwayland-drm if Wayland EGL platform is enabled
authorArmin K <krejzi@email.com>
Sun, 11 Aug 2013 15:27:23 +0000 (17:27 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 12 Aug 2013 22:16:22 +0000 (15:16 -0700)
We were relying on libEGL to pull in libwayland-client symbols, but with
commit 2c2e64edaba0f6aeb181ca5b51eb8dea8e9b39f9 cleaned up the
symbol leak.

https://bugs.freedesktop.org/show_bug.cgi?id=67962

src/Makefile.am
src/egl/Makefile.am
src/gbm/Makefile.am

index b3dc44d6fd66382f0901122850c7ff68478d80bc..76280a0c02ec2a0063b4acbfc644e78ce1522a7d 100644 (file)
@@ -29,6 +29,10 @@ if HAVE_DRI_GLX
 SUBDIRS += glx
 endif
 
+if HAVE_EGL_PLATFORM_WAYLAND
+SUBDIRS += egl/wayland
+endif
+
 if HAVE_GBM
 SUBDIRS += gbm
 endif
index e6380ecdedf8c188f342cd58db5400a8af215c69..cff943f7545f3d3abda054c87e0938636ee1a680 100644 (file)
@@ -21,8 +21,4 @@
 
 SUBDIRS=
 
-if HAVE_EGL_PLATFORM_WAYLAND
-SUBDIRS += wayland
-endif
-
 SUBDIRS += drivers main
index e22c55cfdace63ec72066fb9e21f5620cab81671..1282b147c27f721b2bce381745940fa703304820 100644 (file)
@@ -24,6 +24,7 @@ libgbm_la_LIBADD = $(LIBUDEV_LIBS) $(LIBKMS_LIBS) $(DLOPEN_LIBS)
 if HAVE_EGL_PLATFORM_WAYLAND
 AM_CPPFLAGS = -DHAVE_WAYLAND_PLATFORM
 AM_CFLAGS += $(WAYLAND_CFLAGS)
+libgbm_la_LIBADD += $(top_builddir)/src/egl/wayland/wayland-drm/libwayland-drm.la $(WAYLAND_LIBS)
 endif
 
 if HAVE_DRI
@@ -38,7 +39,7 @@ libgbm_dri_la_CFLAGS = \
        $(LIBDRM_CFLAGS)
 
 libgbm_la_LIBADD += \
-       libgbm_dri.la $(top_builddir)/src/mapi/shared-glapi/libglapi.la
+       libgbm_dri.la $(top_builddir)/src/mapi/shared-glapi/libglapi.la $(LIBDRM_LIBS)
 endif
 
 all-local: libgbm.la