This is an auto-filled bug because app-arch/zstd calls cc directly. The issue was originally discovered on arm64, but it may be reproducible on other arches as well. Attached build log and emerge --info. NOTE: To reproduce this issue you may want to temporarily move the /usr/bin/cc - /usr/bin/gcc binaries.
Created attachment 633618 [details] build.log build log and emerge --info
mymake() { emake \ CC="$(tc-getCC)" \ CXX="$(tc-getCXX)" \ AR="$(tc-getAR)" \ PREFIX="${EPREFIX}/usr" \ LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ "${@}" } multilib_src_compile() { mymake -C lib libzstd libzstd.a libzstd.pc if multilib_is_native_abi ; then mymake zstd mymake -C contrib/pzstd fi } multilib_src_install() { mymake -C lib DESTDIR="${D}" install if multilib_is_native_abi ; then mymake -C programs DESTDIR="${D}" install mymake -C contrib/pzstd DESTDIR="${D}" install fi } Well of course, it didn't override src_test... Nowadays this package is built using meson, which means it is handled correctly.