I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details). Check the attached build log. Thanks, Diego
Created attachment 172242 [details] Build log
Created attachment 179284 [details, diff] Patch to correct several issues in the upstream Makefile The upstream Makefile exhibits several QA violations: - CC is forced to g++, which inhibits cross-compiling and violates convention that CC is a C compiler and CXX is a C++ compiler. - CFLAGS are forced to -Wall, which overrides user CFLAGS. - LDFLAGS are ignored, which is why --as-needed in make.conf does not work here. - Libraries are linked in the wrong place on the make rule, which is what caused the failure Diego observed. - The name of the final target is wrong: ncurses, instead of braincurses. This patch fixes all of these issues, by removing the initialization of CC and CFLAGS, fixing the name in the target rule, using almost the default C++ link line from GNU make's built-in rules, and removing the rules for the component object files, since they would end up compiled as C files with the override of CC removed.
Fixed in portage. Thanks for report and patch