From 77490199b2e5fd2dc2b4bc53c5115cf41ed46f2a Mon Sep 17 00:00:00 2001 From: "P. F. Chimento" Date: Mon, 22 Oct 2012 22:00:04 +0200 Subject: [PATCH] Workaround mysterious dlopen bug on Python import --- libchimara/Makefile.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 = \ -- 2.30.2