gl: Add DRM cflags
authorCarlos Rafael Giani <dv@pseudoterminal.org>
Sun, 25 Feb 2018 13:16:44 +0000 (14:16 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 26 Feb 2018 12:27:20 +0000 (07:27 -0500)
This prevents cross compilation errors like:

usr/include/xf86drm.h:40:10: fatal error: drm.h: No such file or directory

These are caused because gstgldisplay_gbm.h includes xf86drm.h .

https://bugzilla.gnome.org/show_bug.cgi?id=793837

gst-libs/gst/gl/Makefile.am

index ca476e7..847f7f4 100644 (file)
@@ -154,6 +154,7 @@ libgstgl_@GST_API_VERSION@_la_CFLAGS = \
        $(GST_PLUGINS_BASE_CFLAGS) \
        $(GST_BASE_CFLAGS) \
        $(GST_CFLAGS) \
+       $(DRM_CFLAGS) \
        $(GL_CFLAGS)
 
 libgstgl_@GST_API_VERSION@_la_LDFLAGS = \