examples: pass COGL_DEP_LIBS as ldflags when linking

To be sure our examples link with all the libraries required, we now
simply pass the $(COGL_DEP_LIBS) as ldflags when linking them.
This commit is contained in:
Robert Bragg 2011-06-15 14:52:21 +01:00
parent 2f000c3c12
commit c2bbf90c2e

View File

@ -16,6 +16,7 @@ AM_CPPFLAGS = \
common_ldadd = \ common_ldadd = \
$(COGL_DEP_LIBS) \
$(top_builddir)/cogl/libcogl.la $(top_builddir)/cogl/libcogl.la
noinst_PROGRAMS = hello noinst_PROGRAMS = hello
@ -26,7 +27,7 @@ hello_LDADD = $(common_ldadd)
if X11_TESTS if X11_TESTS
noinst_PROGRAMS += x11-foreign noinst_PROGRAMS += x11-foreign
x11_foreign_SOURCES = x11-foreign.c x11_foreign_SOURCES = x11-foreign.c
x11_foreign_LDADD = $(common_ldadd) -lX11 x11_foreign_LDADD = $(common_ldadd)
endif endif
if SUPPORT_WAYLAND_EGL_SERVER if SUPPORT_WAYLAND_EGL_SERVER