a recent change moved pthread_create for wasm32-wasip1 to libc.
it broke configure-time detection of pthread like cmake FindThreads.
FindThreads internally uses CheckLibraryExists, which attempts to detect pthread_create symbol, building an equivalent of the following program.
int main(int argc, char **argv)
{
pthread_create();
}
as it doesn't include pthread.h at all, _WASI_STRICT_PTHREAD has no chance to work it around.