OpenRC fails to build with USE="static-libs -split-usr". It installs the shared libraries in /lib*, and the static libraries in /usr, which doesn’t pass lib_check because gen_usr_ldscript is a no-op with USE="-split-usr". To fix, add SHLIBDIR=${UPREFIX}/${LIBNAME} to MAKE_ARGS. Reproducible: Always
Created attachment 634494 [details, diff] Specify SHLIBDIR
Created attachment 634498 [details] Build log
Imo the better fix is to drop the use of SHLIBDIR upstream and put everything in LIBDIR. The controversy I would run into here is it would break Gentoo users who are using separate /usr with no initramfs because I would have to force libdir to be in /usr.
Created attachment 692610 [details, diff] drop-shlibdir.patch Ideally, this is the patch I would apply to fix this issue. The down side is, it would break any gentoo users who use separate /usr without initramfs hard.
Due to a request from the gentoo QA team, I will be dropping the static-libs use flag in the next release.