$NetBSD$

When linking a program, the linking flags are needed.

--- Makefile.in.orig	2007-01-24 21:54:12.000000000 +0100
+++ Makefile.in	2007-06-06 23:59:19.000000000 +0200
@@ -104,7 +104,7 @@ main: makefile.dep $(Z_OBJS)
 	rm -f version.o
 
 $(PSR): parsegen.cpp
-	@CXX@ @CXXFLAGS@ -o $@ $< -lz
+	@CXX@ @CXXFLAGS@ -o $@ $< @LDFLAGS@ @LIBS@ -lz
 
 TOOLSEXE=$(TOOL_D)/archopt $(TOOL_D)/cutrtype $(TOOL_D)/extraext\
 	$(TOOL_D)/macroll $(TOOL_D)/minwhite $(TOOL_D)/nreplace\
