Created attachment 340974 [details] emerge --info output I need to link against static libraries in order to compile code on my gentoo box and run it on non-gentoo boxes. In the past, rrdtool installed librrd.a in /usr/lib. Now, it does not. I added static-libs to my USE flags, but that didn't work, even though it did for sys-libs/zlib and dev-libs/openssl. To get around the problem, I patched the ebuild. It seems to work fine, but my testing has been modest. Please consider accepting my patch so that others can get static libraries when they need them. I've attached the output of emerge --info and will attach my patch.
Created attachment 340976 [details, diff] ebuild patch that worked for me
Comment on attachment 340976 [details, diff] ebuild patch that worked for me This patch wouldn't work for anyone else, though. Packages in R/DEPEND should have USE=static-libs as well.
--- ChangeLog 2013-03-06 17:06:11.000000000 +0100 +++ ChangeLog.new 2013-03-06 17:28:04.123058555 +0100 @@ -3,6 +3,9 @@ # $Header: /var/cvsroot/gentoo-x86/net-analyzer/rrdtool/ChangeLog,v 1.244 2013/03/06 16:06:11 jer Exp $ + 06 Mar 2013; Jeroen Roovers <jer@gentoo.org> rrdtool-1.4.7-r2.ebuild: + Add USE=static-libs by A.M. (bug #460348). Thanks for the patch. Please reopen if something is still missing (I noticed x11-libs/pango doesn't have support for IUSE=static-libs, and I don't know whether it matters).