Commit bff86518 authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

gst1-plugins-bad: fix egl detection



Some egl implementations needs special compiler flags or defines (E.G.
mesa3d for wayland needs to pass -DMESA_EGL_NO_X11_HEADERS to not try to
include X11 headers).  This is correctly included in the .pc file, but the
configure logic doesn't use pkg-config so help it along.

Likewise, some implementations may need to link against other libraries, so
also pass LIBS.

Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 962ffda6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -118,6 +118,9 @@ endif
ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BAD_LIB_OPENGL_EGL),y)
GST1_PLUGINS_BAD_CONF_OPTS += --enable-egl
GST1_PLUGINS_BAD_DEPENDENCIES += libegl
GST1_PLUGINS_BAD_CONF_ENV += \
	CPPFLAGS="$(TARGET_CPPFLAGS) $(shell $(PKG_CONFIG_HOST_BINARY) --cflags egl)" \
	LIBS="$(shell $(PKG_CONFIG_HOST_BINARY) --libs egl)"
else
GST1_PLUGINS_BAD_CONF_OPTS += --disable-egl
endif