memusagestat may indirectly link against libpthread. The built libpthread should be used, but that is only possible if it has been built before the malloc programs.
1999-10-04 Ulrich Drepper <drepper@cygnus.com> * malloc/Makefile: Add libdl dependency to libmemprof.so. * malloc/Depend: New file.