GNOME Bugzilla – Bug 668750
valac adds g_thread_init() for apps compiled with --thread
Last modified: 2016-10-10 07:42:01 UTC
Created attachment 206191 [details] [review] don't generate calls to g_thread_init() If an application is compiled with --thread and calls Gtk.init(), the valac compiler adds a call to g_thread_init(), which results in a compilation failure on distros using recent versions of glib (and is unnecessary even on relatively old versions). This appears to affect at least 0.14 and 0.10, so I'd bet 0.12 is also affected ;) 0.15/0.15 do not appear to be affected by this issue. I'm attaching a patch that covers this for 0.14.
Review of attachment 206191 [details] [review]: Thanks for the patch. The fact that has been deprecated it doesn't mean old code isn't using it. The patch must take in consideration the targeted glib from which it's been deprecated.
*** This bug has been marked as a duplicate of bug 692218 ***