tests/test-pthread tries to link in -lpthread through LDFLAGS instead of LOADLIBES, which obviously fails with --as-needed. Reproducible: Always Steps to Reproduce:
*** This bug has been marked as a duplicate of bug 262989 ***