>>> Compiling source in /tmp/portage/dev-util/vtable-dumper-1.1/work/vtable-dumper-1.1 ... make -j12 gcc dump-vtable.c -o vtable-dumper -ldl -lelf -lstdc++ -Wall [...] >>> Install vtable-dumper-1.1 into /tmp/portage/dev-util/vtable-dumper-1.1/image/ category dev-util make -j12 prefix=/tmp/portage/dev-util/vtable-dumper-1.1/image/usr install gcc dump-vtable.c -o vtable-dumper -ldl -lelf -lstdc++ -Wall So: a. doesn't respect CC, CFLAGS, LDFLAGS, pretty much anything. b. rebuilds the same thing twice. c. links directly to -lstdc++ which eliminates any other C++ library.
Issues a and b have been fixed upstream. https://github.com/lvc/vtable-dumper/commit/2fb122e7004a6ff34224d3e7743fe96ef5dba26b Issue c may be an non-issue; this is not a C++ program. Rather, it is a C program that calls a private symbol which is defined in libstdc++. https://github.com/lvc/vtable-dumper/blob/master/dump-vtable.c#L196 If you think that is wrong, please complain upstream. https://github.com/lvc/vtable-dumper/issues
(In reply to Mike Gilbert from comment #1) > Issues a and b have been fixed upstream. Fixed in Gentoo with a version bump. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fabe787da21d5719d93d842020e7b0db9586beb