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). Please note that this bug _might_ apply to -Wl,--as-needed in LDFLAGS as well; in both cases it should be fixed. Also, if this is due to the package in question not respecting user-defined LDFLAGS, you should get to fix that too. Check the attached build log. Thanks, Diego
Created attachment 200548 [details] Build log
That should be fixed by: 16 Mar 2009; Tiziano Müller <dev-zero@gentoo.org> files/encfs-1.5-boost-system-and-as-needed.patch: Properly fix --as-needed bug. After applying ^^ patch my linking phase looks like that: i686-pc-linux-gnu-g++ -shared -nostdlib <lots of *.o> /usr/lib/librlog.so -lssl -lcrypto -ldl -lz -lboost_serialization-1_41 -lboost_filesystem-1_41 -lboost_system-1_41 <snip> -march=i686 -pthread -Wl,--as-needed -Wl,--hash-style=gnu -Wl,-O1 -pthread -Wl,-soname -Wl,libencfs.so.4 -o .libs/libencfs.so.4.1.0 as it should be...
encfs-1.6 in portage, builds fine here with forced asneeded, gcc-4.5.0, and boost-1.42.0-r1.