GNOME Bugzilla – Bug 642576
Valac doesn't set the shared-library attribute in generated GIR
Last modified: 2011-09-23 23:23:06 UTC
Created attachment 181132 [details] Sample library to reproduce the problem When compiling with --library foo --gir=Foo-1.0.gir the generated gir doesn't include the shared-library attribute on the <namespace> element. This is required for the typelibs to work with PyGI and other dynamic introspection languages. See fx. in Gtk-3.0.gir: <namespace name="Gtk" version="3.0" shared-library="libgtk-3.so.0" c:identifier-prefixes="Gtk" c:symbol-prefixes="gtk">
Just use the --shared-library swtch of g-ir-compiler: $ g-ir-compiler --shared-library=libbaboon.so.1 This should crash.
*** Bug 656893 has been marked as a duplicate of this bug. ***
Can this be closed? It seems as i it is enough to pass the library to g-ir-compiler. See bug 656893.
There's also bug #585116. It would be nice if Vala added the attribute and automatically worked out the right libtool filename for the library; see bug #658002.
See also: bug #659078.
*** This bug has been marked as a duplicate of bug 585116 ***