glib fails linking errorcheck-mutex-test during the main compilation (not during test as in FEATURES=test). The reason it fails on g/fbsd is that -pthread has to be specified during the final binary linkage, more info about 'why' here: http://xrl.us/r6gm On older versions of glib, while linking these tests, those who required libgthread where implicitly adding $(G_THREAD_LIBS) to their link command, this new one (errorcheck-mutex-test) is not doing so, even as it adds libgthread as the others do. The attached patch fixes this without requiring to run eautoreconf, because the automake rerun fails.
Created attachment 99202 [details, diff] glib -pthread.diff Proposed fix.
This patch works fine for me. Thanks. (In reply to comment #1) > Created an attachment (id=99202) [edit] > glib -pthread.diff > > Proposed fix. >
Committed to 2.12.4 without revbump. Thanks