Add $(LIBS) to the pgen link line.
diff --git a/Parser/Makefile.in b/Parser/Makefile.in
index 48bfebc..db61255 100644
--- a/Parser/Makefile.in
+++ b/Parser/Makefile.in
@@ -14,6 +14,7 @@
 AR=		@AR@
 
 DEFS=		@DEFS@
+LIBS=		@LIBS@
 
 
 # === Other things that are customizable but not by configure ===
@@ -56,7 +57,7 @@
 		touch add2lib
 
 $(PGEN):	$(PGENOBJS)
-		$(CC) $(OPT) $(PGENOBJS) -o $(PGEN)
+		$(CC) $(OPT) $(PGENOBJS) $(LIBS) -o $(PGEN)
 
 clean:
 		-rm -f *.o core *~ [@,#]* *.old *.orig *.rej add2lib