From: P. F. Chimento Date: Mon, 22 Oct 2012 20:00:04 +0000 (+0200) Subject: Workaround mysterious dlopen bug on Python import X-Git-Url: https://git.stderr.nl/gitweb?p=projects%2Fchimara%2Fchimara.git;a=commitdiff_plain;h=77490199b2e5fd2dc2b4bc53c5115cf41ed46f2a Workaround mysterious dlopen bug on Python import --- diff --git a/libchimara/Makefile.am b/libchimara/Makefile.am index 8f7c216..b39c8f1 100644 --- a/libchimara/Makefile.am +++ b/libchimara/Makefile.am @@ -70,7 +70,13 @@ CLEANFILES = -include $(INTROSPECTION_MAKEFILE) INTROSPECTION_GIRS = INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) -INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) +# The '--shared-library' incantation is because, for some reason, the typelib +# only stores the filename without a pathname (see, in gobject-introspection, +# _g_typelib_do_dlopen() in gitypelib.c around line 2100.) This is a regression +# in either gobject-introspection or g-ir-compiler, but I can't pinpoint it. +INTROSPECTION_COMPILER_ARGS = \ + --includedir=$(srcdir) \ + --shared-library=$(libdir)/libchimara.so.0 if HAVE_INTROSPECTION introspection_sources = \