$OpenBSD: patch-Makefile_in,v 1.1 2006/02/17 22:08:52 steven Exp $
--- Makefile.in.orig	Mon Nov 21 22:35:37 2005
+++ Makefile.in	Sun Feb 12 15:27:26 2006
@@ -361,7 +361,7 @@ distclean-compile:
 	-rm -f *.tab.c
 
 .c.o:
-	$(COMPILE) -c $<
+	$(COMPILE) $(SHLIB_CFLAGS) -c $<
 
 .c.obj:
 	$(COMPILE) -c `$(CYGPATH_W) '$<'`
@@ -787,7 +787,7 @@ menudep.h: menudep$(EXEEXT)
 
 xcwrap.o: xcwrap.c menudep.h
 	$(CC) ${CPPFLAGS} ${CFLAGS} ${DEFS} $(PATHNAMES) $(INCLUDES) \
-		xcwrap.c -c -o xcwrap.o
+		${SHLIB_CFLAGS} xcwrap.c -c -o xcwrap.o
 
 lib/tcl/xcircuit${SHDLIB_EXT}: xcwrap.o ${xcircuit_OBJECTS} ${xcircuit_DEPEND}
 	$(RM) lib/xcircuit${SHDLIB_EXT}
