Here is a patch to make latest pinfo compile with --as-needed. The problem was a LDFLAGS/LIBS confusion in an autoconf macro. Using the right variable fixes the gcc arguments order, and makes -lncursew not being ignored. Error log (config.log) was: configure:10145: checking if curses is usable configure:10174: i686-pc-linux-gnu-gcc -o conftest -march=pentium-m -O2 -pipe -ggdb -I/usr/include -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -L/usr/lib -lncursesw conftest.c >&5 /var/tmp/portage/pinfo-0.6.9/temp/ccARM0Nt.o: In function `main': /var/tmp/portage/pinfo-0.6.9/work/pinfo-0.6.9/conftest.c:37: undefined reference to `initscr' /var/tmp/portage/pinfo-0.6.9/work/pinfo-0.6.9/conftest.c:38: undefined reference to `printw' /var/tmp/portage/pinfo-0.6.9/work/pinfo-0.6.9/conftest.c:39: undefined reference to `stdscr' /var/tmp/portage/pinfo-0.6.9/work/pinfo-0.6.9/conftest.c:39: undefined reference to `wrefresh' /var/tmp/portage/pinfo-0.6.9/work/pinfo-0.6.9/conftest.c:40: undefined reference to `stdscr' /var/tmp/portage/pinfo-0.6.9/work/pinfo-0.6.9/conftest.c:40: undefined reference to `wgetch' /var/tmp/portage/pinfo-0.6.9/work/pinfo-0.6.9/conftest.c:41: undefined reference to `endwin' collect2: ld returned 1 exit status
Created attachment 90206 [details, diff] files/pinfo-0.6.9-as-needed.patch
Created attachment 90207 [details, diff] pinfo-0.6.9-ebuild.patch
Fixed in Portage with no revision bump. Thanks for reporting this!