--- a/Makefile.in
+++ b/Makefile.in
@@ -67,7 +67,7 @@
 $(OBJECTS): Makefile
 
 libgnurx-$(DLLVERSION).dll libgnurx.dll.a: $(OBJECTS)
-	$(CC) -shared -o libgnurx-$(DLLVERSION).dll $(LDFLAGS) $(OBJECTS)
+	$(CC) $(CFLAGS) -shared -o libgnurx-$(DLLVERSION).dll $(LDFLAGS) $(OBJECTS)
 
 libregex.a: libgnurx.dll.a
 	cp -p libgnurx.dll.a $@
@@ -122,4 +122,4 @@
 	rm -f Makefile config.status config.log
 	rm -rf autom4te.cache
 
-# $RCSfile$Revision: 1.3 $: end of file
+# $RCSfile$Revision: 1.4 $: end of file