Created attachment 401444 [details] Log from emerge -NuD lvm2 cryptsetup This is from a fresh install. Steps to reproduce: 1. modify USE flags to force a static build: echo "sys-fs/cryptsetup static -dynamic static-libs" >> /etc/portage/package.use/cryptsetup echo "sys-fs/lvm2 static -dynamic static-libs" >> /etc/portage/package.use/lvm2 2. emerge both packages: emerge -NuD lvm2 cryptsetup 3. notice that cryptsetup are dynamically link to shared objects: ldd /sbin/cryptsetup … libattr.so.1 => /lib64/libattr.so.1 (0x00007fd96603c000) libcryptsetup.so.4 => … Expected result: /sbin/cryptsetup should not depend on any shared object I need a static binary for my initramfs.
Created attachment 401446 [details] emerge --info cryptsetup
You are using a systemd profile, which masks the "static" and "static-libs" use flags.