mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00:00
565e2cabd8
At the moment, on make install, libcogl-pango will link to the version of libcogl that is installed system wide. This leads to interesting problems when the version installed system wide is incompatible with the version of cogl being built. E.g., when building cogl-1.7.4 (with --enable-cogl-pango and --prefix=/usr) on a system that has cogl-1.7.2 installed in /usr: $ make [...] $ ldd cogl-pango/.libs/libcogl-pango.so | grep cogl libcogl.so.2 => /var/tmp/cogl-1.7.4/cogl/.libs/libcogl.so.2 (0x00007eff4bfb2000) $ make DESTDIR=/var/tmp/cogl-1.7.4/dest install [...] $ ldd /var/tmp/cogl-1.7.4/dest/usr/lib64/libcogl-pango.so | grep cogl libcogl.so.1 => /usr/lib64/libcogl.so.1 (0x00007f4647747000) This problem can be avoided by reordering libcogl_pango_la_LIBADD to ensure that during make installs' relinking phase, libtool looks at the libcogl in the build directory before the system wide libcogl. https://bugzilla.gnome.org/show_bug.cgi?id=655026 Reviewed-By: Robert Bragg <robert@linux.intel.com> Reviewed-By: Emmanuele Bassi <ebassi@linux.intel.com>
93 lines
2.4 KiB
Makefile
93 lines
2.4 KiB
Makefile
include $(top_srcdir)/build/autotools/Makefile.am.silent
|
|
|
|
NULL =
|
|
|
|
CLEANFILES =
|
|
DISTCLEANFILES =
|
|
|
|
EXTRA_DIST =
|
|
|
|
source_c = \
|
|
cogl-pango-display-list.c \
|
|
cogl-pango-fontmap.c \
|
|
cogl-pango-render.c \
|
|
cogl-pango-glyph-cache.c \
|
|
cogl-pango-pipeline-cache.c \
|
|
$(NULL)
|
|
|
|
source_h = cogl-pango.h
|
|
|
|
source_h_priv = \
|
|
cogl-pango-display-list.h \
|
|
cogl-pango-private.h \
|
|
cogl-pango-glyph-cache.h \
|
|
cogl-pango-pipeline-cache.h \
|
|
$(NULL)
|
|
|
|
lib_LTLIBRARIES = libcogl-pango.la
|
|
|
|
libcogl_pango_la_SOURCES = $(source_c) $(source_h) $(source_h_priv)
|
|
libcogl_pango_la_CFLAGS = $(COGL_DEP_CFLAGS) $(COGL_EXTRA_CFLAGS) $(MAINTAINER_CFLAGS)
|
|
libcogl_pango_la_LIBADD = $(top_builddir)/cogl/libcogl.la
|
|
libcogl_pango_la_LIBADD += $(COGL_DEP_LIBS) $(COGL_EXTRA_LDFLAGS)
|
|
libcogl_pango_la_LDFLAGS = \
|
|
-export-dynamic \
|
|
-export-symbols-regex "^cogl_pango_.*"
|
|
-no-undefined \
|
|
-version-info @COGL_LT_CURRENT@:@COGL_LT_REVISION@:@COGL_LT_AGE@
|
|
|
|
INCLUDES = \
|
|
-DG_DISABLE_SINGLE_INCLUDES \
|
|
-DCLUTTER_COMPILATION \
|
|
-DG_LOG_DOMAIN=\"CoglPango\" \
|
|
-I$(top_srcdir)/cogl \
|
|
-I$(top_srcdir)/cogl/winsys \
|
|
-I$(top_srcdir) \
|
|
-I$(top_builddir)
|
|
|
|
cogl_pangoheadersdir = $(includedir)/cogl/cogl-pango
|
|
cogl_pangoheaders_HEADERS = $(source_h)
|
|
|
|
pc_files = cogl-pango-1.0.pc \
|
|
cogl-pango-$(COGL_API_VERSION)-experimental.pc
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = $(pc_files)
|
|
|
|
EXTRA_DIST += cogl-pango.pc.in
|
|
DISTCLEANFILES += $(pc_files)
|
|
|
|
-include $(INTROSPECTION_MAKEFILE)
|
|
|
|
INTROSPECTION_GIRS =
|
|
|
|
if HAVE_INTROSPECTION
|
|
INTROSPECTION_COMPILER_ARGS=--includedir=$(top_builddir)/cogl
|
|
|
|
CoglPango-1.0.gir: libcogl-pango.la Makefile
|
|
|
|
CoglPango_1_0_gir_NAMESPACE = CoglPango
|
|
CoglPango_1_0_gir_VERSION = 1.0
|
|
CoglPango_1_0_gir_LIBS = libcogl-pango.la
|
|
CoglPango_1_0_gir_FILES = $(source_h) $(source_c)
|
|
CoglPango_1_0_gir_CFLAGS = $(INCLUDES) $(AM_CPPFLAGS) $(COGL_DEP_CFLAGS)
|
|
CoglPango_1_0_gir_INCLUDES = Pango-1.0 PangoCairo-1.0
|
|
CoglPango_1_0_gir_EXPORT_PACKAGES = cogl-pango-1.0
|
|
CoglPango_1_0_gir_SCANNERFLAGS = \
|
|
--warn-all \
|
|
--identifier-prefix=CoglPango \
|
|
--symbol-prefix=cogl_pango \
|
|
--c-include='cogl-pango/cogl-pango.h' \
|
|
--include-uninstalled=$(top_builddir)/cogl/Cogl-1.0.gir
|
|
|
|
INTROSPECTION_GIRS += CoglPango-1.0.gir
|
|
|
|
girdir = $(datadir)/gir-1.0
|
|
gir_DATA = $(INTROSPECTION_GIRS)
|
|
|
|
typelibdir = $(libdir)/girepository-1.0
|
|
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
|
|
|
|
CLEANFILES += $(gir_DATA) $(typelib_DATA)
|
|
endif
|