--- a/src/Makevars.win
+++ b/src/Makevars.win
@@ -1,2 +1,2 @@
 PKG_CPPFLAGS=-I"$(JAGS_ROOT)/include" 
-PKG_LIBS=-L"$(JAGS_ROOT)/${R_ARCH}/bin" -ljags-3
+PKG_LIBS=-L"$(JAGS_ROOT)/${R_ARCH}/bin" -ljags-4