When building scute with slibtool (https://dev.midipix.org/cross/slibtool) it fails.
rdlibtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -Wall -Wno-pointer-sign -Wpointer-arith -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o t-link t-link.o ../src/scute.la rdlibtool: lconf: {.name="libtool"}. rdlibtool: fdcwd: {.fdcwd=AT_FDCWD, .realpath="/var/tmp/portage/app-crypt/scute-1.6.0/work/scute-1.6.0/tests"}. rdlibtool: lconf: fstatat(AT_FDCWD,".",...) = 0 {.st_dev = 84, .st_ino = 765700}. rdlibtool: lconf: openat(AT_FDCWD,"libtool",O_RDONLY,0) = -1 [ENOENT]. rdlibtool: lconf: openat(AT_FDCWD,"../",O_DIRECTORY,0) = 3. rdlibtool: lconf: fstat(3,...) = 0 {.st_dev = 84, .st_ino = 765537}. rdlibtool: lconf: openat(3,"libtool",O_RDONLY,0) = 4. rdlibtool: lconf: found "/var/tmp/portage/app-crypt/scute-1.6.0/work/scute-1.6.0/libtool". rdlibtool: link: x86_64-pc-linux-gnu-gcc t-link.o -Wall -Wno-pointer-sign -Wpointer-arith -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-rpath -Wl,/usr/lib64/pkcs11 -L../src/.libs -lte -L/usr/lib64 -lassuan -lgpg-error -o .libs/t-link /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lte collect2: error: ld returned 1 exit status rdlibtool: exec error upon slbt_exec_link_create_executable(), line 1731: (see child process error messages). rdlibtool: < returned to > slbt_exec_link(), line 2051. make[2]: *** [Makefile:773: t-link] Error 2 make[2]: Leaving directory '/var/tmp/portage/app-crypt/scute-1.6.0/work/scute-1.6.0/tests' make[1]: *** [Makefile:448: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/app-crypt/scute-1.6.0/work/scute-1.6.0' make: *** [Makefile:380: all] Error 2
This is because scute creates scute.la instead of the canonical library name libscute.la which is required with slibtool while GNU libtool is much more permissive and hides bugs. Unfortunately slibtool has a misleading error message that should probably be also fixed.
Please see this downstream issue: https://bugs.gentoo.org/782097