$OpenBSD: patch-Makefile_in,v 1.3 2007/10/24 15:01:09 steven Exp $
--- Makefile.in.orig	Sun Mar 11 00:49:57 2007
+++ Makefile.in	Sat Oct 13 22:38:30 2007
@@ -76,10 +76,10 @@ INCLUDES = \
 LIB	= \
 	@V_LIBS@ \
 	@V_LIB@ \
-	-lm @LIBS@
+	-lm @LIBS@ -L!!X11BASE!!/lib -lX11
 #	-L@libdir@ \
 
-CFLAGS	+= $(CCOPT) $(DEFINE) 
+CFLAGS	+= $(CCOPT) @CFLAGS@ $(DEFINE) 
 
 # Explicitly define compilation rules since SunOS 4's make doesn't like gcc.
 # Also, gcc does not remove the .o before forking 'as', which can be a
