gl: only link against gstegl if we are using egl
authorMatthew Waters <ystreet00@gmail.com>
Mon, 17 Mar 2014 14:06:25 +0000 (15:06 +0100)
committerMatthew Waters <ystreet00@gmail.com>
Mon, 17 Mar 2014 14:06:25 +0000 (15:06 +0100)
Assuming if we are building egl that the egl library is built

gst-libs/gst/gl/Makefile.am

index 74cca7a..4902b0b 100644 (file)
@@ -49,9 +49,7 @@ libgstgl_@GST_API_VERSION@include_HEADERS = \
 
 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)
@@ -89,6 +87,7 @@ endif
 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