$NetBSD$

--- tools/lemon/Makefile.in.orig	2011-01-31 12:03:39.000000000 +0000
+++ tools/lemon/Makefile.in
@@ -631,7 +631,7 @@ uninstall-am: uninstall-info-am
 
 
 lemon$(EXEEXT): lemon.c
-	$(CC_FOR_BUILD) -D_U_="" $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $?
+	$(CC_FOR_BUILD) -D_U_="" $(CFLAGS) $(LDFLAGS) -o $@ $?
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:
