build: Require gobject-2.0 and gmodule-no-export-2.0
Cogl requires gobject and gmodule API, so we need to check for these and add them to the pkg-config files as dependencies, otherwise building Cogl with --as-needed (like modern distributions now do) will cause build errors. https://bugzilla.gnome.org/show_bug.cgi?id=656809 Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
parent
191d915671
commit
69b0db4cdb
@ -864,9 +864,9 @@ dnl ============================================================
|
||||
AM_PATH_GLIB_2_0([glib_req_version],
|
||||
[have_glib=yes], [have_glib=no],
|
||||
[gobject gthread gmodule-no-export])
|
||||
AS_IF([test "x$have_glib" = "xno"], AC_MSG_ERROR([glib-2.0 is required]))
|
||||
AS_IF([test "x$have_glib" = "xno"], AC_MSG_ERROR([gobject-2.0 is required]))
|
||||
|
||||
COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES glib-2.0"
|
||||
COGL_PKG_REQUIRES="$COGL_PKG_REQUIRES gobject-2.0 gmodule-no-export-2.0"
|
||||
AC_SUBST(COGL_PKG_REQUIRES)
|
||||
PKG_CHECK_MODULES(COGL_DEP, [$COGL_PKG_REQUIRES])
|
||||
if test -n "$COGL_PKG_REQUIRES_GL"; then
|
||||
|
Loading…
Reference in New Issue
Block a user