[Mesa-dev] [PATCH] gbm: fix linking

Armin K. krejzi at email.com
Sat Aug 10 15:32:19 PDT 2013


On 08/10/2013 09:26 PM, Armin K wrote:
> Link to internal libwayland-drm library if Wayland
> EGL platform is enabled.
> 
> Link to libdrm if gbm_dri is enabled.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67962
> ---
>  src/gbm/Makefile.am | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/gbm/Makefile.am b/src/gbm/Makefile.am
> index e22c55c..1282b14 100644
> --- a/src/gbm/Makefile.am
> +++ b/src/gbm/Makefile.am
> @@ -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
> 



More information about the mesa-dev mailing list