If you check the -fbsd patch you can easily see that libraries used for linking the tests are passed through _LDFLAGS. This is probably caused by automake hissing about "--libs" that should be passed through _LDFLAGS rather than _LDFLAGS. Both are wrong. The configure script should use PKG_CHECK_MODULES for glib-2.0 and then the variables read there should be used in the Makefile.am. As it is it will break with --as-needed.
It actually builds fine with --as-needed.
(In reply to comment #0) > should be passed through _LDFLAGS rather than _LDFLAGS. I'm sure there's something wrong with this bit ;)
Uh yeah that was meant to be _LIBS :P As for building with --as-needed, as long as libtool reorders the parameters sure it works... I'm bypassing libtool though by forcing it in the specs.
fixed in 2.0.7 bump. Please reopen if there is still a problem.