--- atftp-0.7.1.orig/Makefile.am	2012-07-22 09:20:32.000000000 +0200
+++ atftp-0.7.1/Makefile.am	2016-10-19 20:02:20.000000000 +0200
@@ -28,7 +28,7 @@ noinst_HEADERS   = argz.h logger.h optio
 		   tftpd.h tftpd_pcre.h tftpd_mtftp.h
 
 bin_PROGRAMS     = atftp
-atftp_LDADD      = $(LIBTERMCAP) $(LIBREADLINE)
+atftp_LDADD      = $(LIBTERMCAP) $(LIBREADLINE) $(LIBPTHREAD)
 atftp_SOURCES    = tftp.c tftp_io.c logger.c options.c tftp_def.c tftp_file.c \
 		   argz.c tftp_mtftp.c
 
