GNOME Bugzilla – Bug 648338
gck test LDADD ignores a couple lines (build failure)
Last modified: 2019-03-23 21:20:32 UTC
I noticed this: LDADD = \ $(top_builddir)/gck/libgck.la \ $(top_builddir)/egg/libegg-test.la \ $(GTHREAD_LIBS) \ $(GLIB_LIBS) $(GIO_LIBS) \ libmock-test-module.la The line with $(GLIB_LIBS) should end with a \ As it is now, the GIO_LIBS and libmock-test-module.la arguments are silently ignored by automake. It's a fun little massive bug in automake that's wasted a bit of my time too. Adding the \ fixes a build error I hit (where the linker complains that g_object_unref is undefined). I'm not completely sure why it hits that error, since it should be a matter of missing libmock-test-module or GIO symbols, though.
(In reply to comment #0) > As it is now, the GIO_LIBS and libmock-test-module.la arguments are silently > ignored by automake. It's a fun little massive bug in automake that's wasted a > bit of my time too. Thanks. Fixed in gnome-3-0 and master. commit 433e014654564fb7dfe013c7968c4b9c027a6f34 Author: Stef Walter <stefw@collabora.co.uk> Date: Thu Apr 21 09:35:28 2011 +0200 gck: Fix linking issue due to type in Makefile. https://bugzilla.gnome.org/show_bug.cgi?id=648338 > Adding the \ fixes a build error I hit (where the linker complains that > g_object_unref is undefined). I'm not completely sure why it hits that error, > since it should be a matter of missing libmock-test-module or GIO symbols, > though. "Oh who can know the ways of libtool?"