Assuming if we are building egl that the egl library is built
libgstgl_@GST_API_VERSION@_la_LIBADD = \
$(GST_PLUGINS_BASE_LIBS) \
- $(top_builddir)/gst-libs/gst/egl/libgstegl-$(GST_API_VERSION).la \
-lgstvideo-$(GST_API_VERSION) \
- -lgstegl-$(GST_API_VERSION) \
$(GST_BASE_LIBS) \
$(GST_LIBS) \
$(GL_LIBS)
if USE_EGL
libgstgl_@GST_API_VERSION@_la_SOURCES += egl/gstglcontext_egl.c \
egl/gstgldisplay_egl.c
+libgstgl_@GST_API_VERSION@_la_LIBADD += $(top_builddir)/gst-libs/gst/egl/libgstegl-$(GST_API_VERSION).la
libgstgl_@GST_API_VERSION@include_HEADERS += egl/gstgldisplay_egl.h
noinst_HEADERS += egl/gstglcontext_egl.h
endif