USE="static" emerge e2fsprogs DOESN'T produce static binary.
Steps to Reproduce:
1.USE="static" emerge e2fsprogs
ldd reports dynamic libraries, blkid doesn't work in initramfs.
Get a statically linked executable
removing --enable-elf-shlibs in src_compile in the ebuild would solve the problem, BUT then compiling fails, because there are no static versons of libss on the system.
USE=static in e2fsprogs has always been just for e2fsck
post a patch if you want all binaries
*** Bug 227087 has been marked as a duplicate of this bug. ***
*** Bug 232115 has been marked as a duplicate of this bug. ***
*** Bug 448702 has been marked as a duplicate of this bug. ***
Created attachment 333448 [details, diff]
allow for conditional building of static binaries
Created attachment 333450 [details, diff]
I've added a bit for autogenerated files to avoid depending on autotools.eclass for prefix sake.