On 10.11.2013 23:01, Andreas Tille wrote: > Hi Paul, > > On Fri, Nov 08, 2013 at 09:13:07PM +0800, Paul Wise wrote: >> On Fri, Nov 8, 2013 at 9:06 PM, Andreas Tille wrote: >> >>> That seems obvious to me but I wonder whether this is not part of the >>> result of pkg-config ... >> >> Neither of the uses of PKG_CHECK_MODULES include gio: >> >> http://sources.debian.net/src/artha/1.0.2-1/configure.ac#L58 >> http://sources.debian.net/src/artha/1.0.2-1/configure.ac#L100 > > I tried to add gio here but configure fails when I'm doing so. Any idea > how to do this correctly?
For a quick fix: Add -lgio-2.0 to artha_LDADD in src/Makefile.am and regenerate the autotools files, for example with dh-autoreconf at package build time. Another, more robust way, would be to use the @GTK_LIBS@ variable, which is populated by the PKG_CHECK_MODULES macro with information taken from pkg-config. The author of the software actually addresses this point in Makefile.am: "# @GTK_LIBS@ & libdbus_CFLAGS are not used to avoid unwanted # libraries (like -latk, -lrt, etc.) passed to the linker" This is a valid point, but can be mitigated by building with the --as-needed linker flag, for example with this in debian/rules: export DEB_LDFLAGS_MAINT_APPEND += -Wl,--as-needed -- Andreas Moog, Berliner Str. 29, 36205 Sontra/Germany Ubuntu Developer PGP-encrypted mails preferred (Key-ID: 74DE6624) PGP Fingerprint: 74CD D9FE 5BCB FE0D 13EE 8EEA 61F3 4426 74DE 6624
signature.asc
Description: OpenPGP digital signature