--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -65,7 +65,7 @@
         xercesc/util/MsgLoaders/MsgCatalog/XercesMessages_en_US.Msg \
         xercesc/util/MsgLoaders/ICU/resources
 
-libxerces_c_la_LIBADD = ${LTLIBOBJS}
+libxerces_c_la_LIBADD = ${LTLIBOBJS} -lws2_32
 
 # NetAccessors, conditionally built based on settings from configure
 #
