Excerpts from running readelf -d on various binaries installed by sys-devel/sparse File: /usr/bin/c2xml Dynamic section at offset 0x36e40 contains 21 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libxml2.so.2] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x401070 File: /usr/bin/test-inspect Dynamic section at offset 0x37e10 contains 24 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libgtk-x11-2.0.so.0] 0x0000000000000001 (NEEDED) Shared library: [libgobject-2.0.so.0] 0x0000000000000001 (NEEDED) Shared library: [libglib-2.0.so.0] 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x4017e8 Sparse's own Makefile contains calls to ``pkg-config --libs libxml-2.0'' and appears to also have automagic dependencies for libxml2:2 and gtk+:2. sys-devel/sparse-0.4.2 only appears to have an automagic dependency on libxml2:2.
both are optional, so USE flags are the way to go http://sources.gentoo.org/sys-devel/sparse/sparse-0.4.3.ebuild?r1=1.2&r2=1.3 http://sources.gentoo.org/sys-devel/sparse/sparse-9999.ebuild?r1=1.6&r2=1.7