This is because Makefile.am contains the value '(tpm2_totp)' in libtpm2_totp_la_LDFLAGS which apparently GNU libtool silently ignores while slibtool does not.
It can be easily fixed by just removing '(tpm2_totp)', but I am not sure what it was originally intended to be and was introduced in the Initial code commit commit.
When building tpm2-totp with slibtool (https://dev.midipix.org/cross/slibtool) it fails.
This is because
Makefile.am
contains the value'(tpm2_totp)'
inlibtpm2_totp_la_LDFLAGS
which apparently GNU libtool silently ignores while slibtool does not.It can be easily fixed by just removing
'(tpm2_totp)'
, but I am not sure what it was originally intended to be and was introduced in theInitial code commit
commit.https://github.com/tpm2-software/tpm2-totp/commit/e6f7d62b1f7873bf18a4ea75ef7be94225e0f778#diff-0462e381b2fb3286568215681c8983490a37ac9ae0f0c5ee304df7fa6426d4afR34
Also see this downstream issue: https://bugs.gentoo.org/777291