--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -18,7 +18,7 @@ libirecovery_1_0_la_SOURCES = \
 	thread.c thread.h
 
 if WIN32
-libirecovery_1_0_la_LDFLAGS += -avoid-version
+libirecovery_1_0_la_LDFLAGS += -avoid-version -lIphlpapi
 endif
 
 pkgconfigdir = $(libdir)/pkgconfig
