--- a/Makefile.in	2009-11-14 07:21:34.000000000 +0100
+++ b/Makefile.in	2010-02-10 12:23:35.000000000 +0100
@@ -103,7 +103,7 @@
 
 preload: $(preload).so
 $(preload).so: $(srcdir)/$(preload).c
-	$(CC) $(CFLAGS) -o $@ -fPIC -shared $? $(LIBS)
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ -fPIC -shared $? $(LIBS)
 
 man: $(target).1
 $(target).1: $(srcdir)/$(target).PL $(srcdir)/$(target).h2m