--- ghostscript-8.64/cups/cups.mak.1	2009-02-07 16:47:21.000000000 +0100
+++ ghostscript-8.64/cups/cups.mak	2009-02-07 16:53:31.000000000 +0100
@@ -49,7 +49,7 @@
 pdftoraster_=cups/pdftoraster.c
 
 $(PDFTORASTER_XE): $(pdftoraster_)
-	$(GLCC) `cups-config --image --libs` -DBINDIR='"$(bindir)"' -DGS='"$(GS)"' -o $@ $(pdftoraster_)
+	$(GLCC) $(LDFLAGS) -DBINDIR='"$(bindir)"' -DGS='"$(GS)"' -o $@ $(pdftoraster_) `cups-config --image --libs`
 
 install:	install-cups