diff -Nur DirectFB-1.4.5-old/gfxdrivers/ati128/Makefile.in DirectFB-1.4.5/gfxdrivers/ati128/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/ati128/Makefile.in	2010-08-19 17:26:21.110000024 +0300
+++ DirectFB-1.4.5/gfxdrivers/ati128/Makefile.in	2010-08-19 17:26:22.953000014 +0300
@@ -594,7 +594,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/cle266/Makefile.in DirectFB-1.4.5/gfxdrivers/cle266/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/cle266/Makefile.in	2010-08-19 17:26:21.106000067 +0300
+++ DirectFB-1.4.5/gfxdrivers/cle266/Makefile.in	2010-08-19 17:26:22.931000016 +0300
@@ -610,7 +610,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/cyber5k/Makefile.in DirectFB-1.4.5/gfxdrivers/cyber5k/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/cyber5k/Makefile.in	2010-08-19 17:26:21.116000017 +0300
+++ DirectFB-1.4.5/gfxdrivers/cyber5k/Makefile.in	2010-08-19 17:26:22.986000016 +0300
@@ -598,7 +598,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/davinci/Makefile.in DirectFB-1.4.5/gfxdrivers/davinci/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/davinci/Makefile.in	2010-08-19 17:26:21.113000008 +0300
+++ DirectFB-1.4.5/gfxdrivers/davinci/Makefile.in	2010-08-19 17:26:22.970000016 +0300
@@ -710,7 +710,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/ep9x/Makefile.in DirectFB-1.4.5/gfxdrivers/ep9x/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/ep9x/Makefile.in	2010-08-19 17:26:21.105000082 +0300
+++ DirectFB-1.4.5/gfxdrivers/ep9x/Makefile.in	2010-08-19 17:26:22.920000016 +0300
@@ -586,7 +586,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/gl/Makefile.in DirectFB-1.4.5/gfxdrivers/gl/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/gl/Makefile.in	2010-08-19 17:26:21.118000018 +0300
+++ DirectFB-1.4.5/gfxdrivers/gl/Makefile.in	2010-08-19 17:26:23.005000012 +0300
@@ -589,7 +589,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/i810/Makefile.in DirectFB-1.4.5/gfxdrivers/i810/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/i810/Makefile.in	2010-08-19 17:26:21.115000015 +0300
+++ DirectFB-1.4.5/gfxdrivers/i810/Makefile.in	2010-08-19 17:26:22.981000016 +0300
@@ -588,7 +588,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/i830/Makefile.in DirectFB-1.4.5/gfxdrivers/i830/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/i830/Makefile.in	2010-08-19 17:26:21.101000130 +0300
+++ DirectFB-1.4.5/gfxdrivers/i830/Makefile.in	2010-08-19 17:26:22.899000015 +0300
@@ -588,7 +588,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/mach64/Makefile.in DirectFB-1.4.5/gfxdrivers/mach64/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/mach64/Makefile.in	2010-08-19 17:26:21.111000014 +0300
+++ DirectFB-1.4.5/gfxdrivers/mach64/Makefile.in	2010-08-19 17:26:22.958000014 +0300
@@ -594,7 +594,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/matrox/Makefile.in DirectFB-1.4.5/gfxdrivers/matrox/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/matrox/Makefile.in	2010-08-19 17:26:21.117000018 +0300
+++ DirectFB-1.4.5/gfxdrivers/matrox/Makefile.in	2010-08-19 17:26:22.992000015 +0300
@@ -609,7 +609,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/neomagic/Makefile.in DirectFB-1.4.5/gfxdrivers/neomagic/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/neomagic/Makefile.in	2010-08-19 17:26:21.110000024 +0300
+++ DirectFB-1.4.5/gfxdrivers/neomagic/Makefile.in	2010-08-19 17:26:22.947000015 +0300
@@ -592,7 +592,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/nsc/Makefile.in DirectFB-1.4.5/gfxdrivers/nsc/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/nsc/Makefile.in	2010-08-19 17:26:21.101000130 +0300
+++ DirectFB-1.4.5/gfxdrivers/nsc/Makefile.in	2010-08-19 17:26:22.905000016 +0300
@@ -705,7 +705,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/nvidia/Makefile.in DirectFB-1.4.5/gfxdrivers/nvidia/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/nvidia/Makefile.in	2010-08-19 17:26:21.099000174 +0300
+++ DirectFB-1.4.5/gfxdrivers/nvidia/Makefile.in	2010-08-19 17:26:22.893000014 +0300
@@ -605,7 +605,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/omap/Makefile.in DirectFB-1.4.5/gfxdrivers/omap/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/omap/Makefile.in	2010-08-19 17:26:21.120000015 +0300
+++ DirectFB-1.4.5/gfxdrivers/omap/Makefile.in	2010-08-19 17:26:23.013000016 +0300
@@ -589,7 +589,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/pxa3xx/Makefile.in DirectFB-1.4.5/gfxdrivers/pxa3xx/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/pxa3xx/Makefile.in	2010-08-19 17:26:21.107000053 +0300
+++ DirectFB-1.4.5/gfxdrivers/pxa3xx/Makefile.in	2010-08-19 17:26:22.936000016 +0300
@@ -634,7 +634,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/radeon/Makefile.in DirectFB-1.4.5/gfxdrivers/radeon/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/radeon/Makefile.in	2010-08-19 17:26:21.103000101 +0300
+++ DirectFB-1.4.5/gfxdrivers/radeon/Makefile.in	2010-08-19 17:26:22.914000015 +0300
@@ -616,7 +616,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/savage/Makefile.in DirectFB-1.4.5/gfxdrivers/savage/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/savage/Makefile.in	2010-08-19 17:26:21.119000017 +0300
+++ DirectFB-1.4.5/gfxdrivers/savage/Makefile.in	2010-08-19 17:26:23.009000017 +0300
@@ -602,7 +602,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/sh772x/Makefile.in DirectFB-1.4.5/gfxdrivers/sh772x/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/sh772x/Makefile.in	2010-08-19 17:26:21.121000014 +0300
+++ DirectFB-1.4.5/gfxdrivers/sh772x/Makefile.in	2010-08-19 17:26:23.016000014 +0300
@@ -638,7 +638,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/sis315/Makefile.in DirectFB-1.4.5/gfxdrivers/sis315/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/sis315/Makefile.in	2010-08-19 17:26:21.112000008 +0300
+++ DirectFB-1.4.5/gfxdrivers/sis315/Makefile.in	2010-08-19 17:26:22.964000015 +0300
@@ -598,7 +598,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/tdfx/Makefile.in DirectFB-1.4.5/gfxdrivers/tdfx/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/tdfx/Makefile.in	2010-08-19 17:26:21.115000015 +0300
+++ DirectFB-1.4.5/gfxdrivers/tdfx/Makefile.in	2010-08-19 17:26:22.976000016 +0300
@@ -586,7 +586,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/unichrome/Makefile.in DirectFB-1.4.5/gfxdrivers/unichrome/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/unichrome/Makefile.in	2010-08-19 17:26:21.108000041 +0300
+++ DirectFB-1.4.5/gfxdrivers/unichrome/Makefile.in	2010-08-19 17:26:22.942000015 +0300
@@ -617,7 +617,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/gfxdrivers/vmware/Makefile.in DirectFB-1.4.5/gfxdrivers/vmware/Makefile.in
--- DirectFB-1.4.5-old/gfxdrivers/vmware/Makefile.in	2010-08-19 17:26:21.118000018 +0300
+++ DirectFB-1.4.5/gfxdrivers/vmware/Makefile.in	2010-08-19 17:26:22.997000015 +0300
@@ -589,7 +589,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/dbox2remote/Makefile.in DirectFB-1.4.5/inputdrivers/dbox2remote/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/dbox2remote/Makefile.in	2010-08-19 17:26:21.172000015 +0300
+++ DirectFB-1.4.5/inputdrivers/dbox2remote/Makefile.in	2010-08-19 17:26:23.443000014 +0300
@@ -589,7 +589,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/dreamboxremote/Makefile.in DirectFB-1.4.5/inputdrivers/dreamboxremote/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/dreamboxremote/Makefile.in	2010-08-19 17:26:21.169000016 +0300
+++ DirectFB-1.4.5/inputdrivers/dreamboxremote/Makefile.in	2010-08-19 17:26:23.401000016 +0300
@@ -589,7 +589,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/dynapro/Makefile.in DirectFB-1.4.5/inputdrivers/dynapro/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/dynapro/Makefile.in	2010-08-19 17:26:21.172000015 +0300
+++ DirectFB-1.4.5/inputdrivers/dynapro/Makefile.in	2010-08-19 17:26:23.436000016 +0300
@@ -583,7 +583,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/elo/Makefile.in DirectFB-1.4.5/inputdrivers/elo/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/elo/Makefile.in	2010-08-19 17:26:21.171000014 +0300
+++ DirectFB-1.4.5/inputdrivers/elo/Makefile.in	2010-08-19 17:26:23.432000015 +0300
@@ -583,7 +583,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/gunze/Makefile.in DirectFB-1.4.5/inputdrivers/gunze/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/gunze/Makefile.in	2010-08-19 17:26:21.169000016 +0300
+++ DirectFB-1.4.5/inputdrivers/gunze/Makefile.in	2010-08-19 17:26:23.397000015 +0300
@@ -583,7 +583,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/h3600_ts/Makefile.in DirectFB-1.4.5/inputdrivers/h3600_ts/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/h3600_ts/Makefile.in	2010-08-19 17:26:21.172000015 +0300
+++ DirectFB-1.4.5/inputdrivers/h3600_ts/Makefile.in	2010-08-19 17:26:23.439000015 +0300
@@ -584,7 +584,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/joystick/Makefile.in DirectFB-1.4.5/inputdrivers/joystick/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/joystick/Makefile.in	2010-08-19 17:26:21.169000016 +0300
+++ DirectFB-1.4.5/inputdrivers/joystick/Makefile.in	2010-08-19 17:26:23.404000015 +0300
@@ -585,7 +585,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/keyboard/Makefile.in DirectFB-1.4.5/inputdrivers/keyboard/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/keyboard/Makefile.in	2010-08-19 17:26:21.171000014 +0300
+++ DirectFB-1.4.5/inputdrivers/keyboard/Makefile.in	2010-08-19 17:26:23.425000016 +0300
@@ -587,7 +587,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/linux_input/Makefile.in DirectFB-1.4.5/inputdrivers/linux_input/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/linux_input/Makefile.in	2010-08-19 17:26:21.173000016 +0300
+++ DirectFB-1.4.5/inputdrivers/linux_input/Makefile.in	2010-08-19 17:26:23.447000015 +0300
@@ -592,7 +592,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/lirc/Makefile.in DirectFB-1.4.5/inputdrivers/lirc/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/lirc/Makefile.in	2010-08-19 17:26:21.174000016 +0300
+++ DirectFB-1.4.5/inputdrivers/lirc/Makefile.in	2010-08-19 17:26:23.461000016 +0300
@@ -584,7 +584,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/mutouch/Makefile.in DirectFB-1.4.5/inputdrivers/mutouch/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/mutouch/Makefile.in	2010-08-19 17:26:21.170000015 +0300
+++ DirectFB-1.4.5/inputdrivers/mutouch/Makefile.in	2010-08-19 17:26:23.411000016 +0300
@@ -581,7 +581,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/penmount/Makefile.in DirectFB-1.4.5/inputdrivers/penmount/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/penmount/Makefile.in	2010-08-19 17:26:21.173000016 +0300
+++ DirectFB-1.4.5/inputdrivers/penmount/Makefile.in	2010-08-19 17:26:23.454000015 +0300
@@ -582,7 +582,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/ps2mouse/Makefile.in DirectFB-1.4.5/inputdrivers/ps2mouse/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/ps2mouse/Makefile.in	2010-08-19 17:26:21.170000015 +0300
+++ DirectFB-1.4.5/inputdrivers/ps2mouse/Makefile.in	2010-08-19 17:26:23.422000015 +0300
@@ -585,7 +585,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/serialmouse/Makefile.in DirectFB-1.4.5/inputdrivers/serialmouse/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/serialmouse/Makefile.in	2010-08-19 17:26:21.170000015 +0300
+++ DirectFB-1.4.5/inputdrivers/serialmouse/Makefile.in	2010-08-19 17:26:23.415000016 +0300
@@ -586,7 +586,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/sonypi/Makefile.in DirectFB-1.4.5/inputdrivers/sonypi/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/sonypi/Makefile.in	2010-08-19 17:26:21.174000016 +0300
+++ DirectFB-1.4.5/inputdrivers/sonypi/Makefile.in	2010-08-19 17:26:23.464000015 +0300
@@ -583,7 +583,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/tslib/Makefile.in DirectFB-1.4.5/inputdrivers/tslib/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/tslib/Makefile.in	2010-08-19 17:26:21.170000015 +0300
+++ DirectFB-1.4.5/inputdrivers/tslib/Makefile.in	2010-08-19 17:26:23.408000014 +0300
@@ -596,7 +596,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/ucb1x00_ts/Makefile.in DirectFB-1.4.5/inputdrivers/ucb1x00_ts/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/ucb1x00_ts/Makefile.in	2010-08-19 17:26:21.173000016 +0300
+++ DirectFB-1.4.5/inputdrivers/ucb1x00_ts/Makefile.in	2010-08-19 17:26:23.450000016 +0300
@@ -585,7 +585,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/wm97xx_ts/Makefile.in DirectFB-1.4.5/inputdrivers/wm97xx_ts/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/wm97xx_ts/Makefile.in	2010-08-19 17:26:21.174000016 +0300
+++ DirectFB-1.4.5/inputdrivers/wm97xx_ts/Makefile.in	2010-08-19 17:26:23.457000015 +0300
@@ -584,7 +584,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/inputdrivers/zytronic/Makefile.in DirectFB-1.4.5/inputdrivers/zytronic/Makefile.in
--- DirectFB-1.4.5-old/inputdrivers/zytronic/Makefile.in	2010-08-19 17:26:21.171000014 +0300
+++ DirectFB-1.4.5/inputdrivers/zytronic/Makefile.in	2010-08-19 17:26:23.429000015 +0300
@@ -582,7 +582,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/interfaces/IDirectFBFont/Makefile.in DirectFB-1.4.5/interfaces/IDirectFBFont/Makefile.in
--- DirectFB-1.4.5-old/interfaces/IDirectFBFont/Makefile.in	2010-08-19 17:26:21.098000199 +0300
+++ DirectFB-1.4.5/interfaces/IDirectFBFont/Makefile.in	2010-08-19 17:26:22.888000015 +0300
@@ -639,7 +639,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/interfaces/IDirectFBImageProvider/Makefile.in DirectFB-1.4.5/interfaces/IDirectFBImageProvider/Makefile.in
--- DirectFB-1.4.5-old/interfaces/IDirectFBImageProvider/Makefile.in	2010-08-19 17:26:21.097000226 +0300
+++ DirectFB-1.4.5/interfaces/IDirectFBImageProvider/Makefile.in	2010-08-19 17:26:22.875999976 +0300
@@ -674,7 +674,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/interfaces/IDirectFBVideoProvider/Makefile.in DirectFB-1.4.5/interfaces/IDirectFBVideoProvider/Makefile.in
--- DirectFB-1.4.5-old/interfaces/IDirectFBVideoProvider/Makefile.in	2010-08-19 17:26:21.097000226 +0300
+++ DirectFB-1.4.5/interfaces/IDirectFBVideoProvider/Makefile.in	2010-08-19 17:26:22.882000030 +0300
@@ -626,7 +626,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/proxy/dispatcher/Makefile.in DirectFB-1.4.5/proxy/dispatcher/Makefile.in
--- DirectFB-1.4.5-old/proxy/dispatcher/Makefile.in	2010-08-19 17:26:21.126000014 +0300
+++ DirectFB-1.4.5/proxy/dispatcher/Makefile.in	2010-08-19 17:26:23.036000014 +0300
@@ -1393,7 +1393,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/proxy/requestor/Makefile.in DirectFB-1.4.5/proxy/requestor/Makefile.in
--- DirectFB-1.4.5-old/proxy/requestor/Makefile.in	2010-08-19 17:26:21.124000016 +0300
+++ DirectFB-1.4.5/proxy/requestor/Makefile.in	2010-08-19 17:26:23.027000015 +0300
@@ -1392,7 +1392,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/systems/devmem/Makefile.in DirectFB-1.4.5/systems/devmem/Makefile.in
--- DirectFB-1.4.5-old/systems/devmem/Makefile.in	2010-08-19 17:26:21.160000015 +0300
+++ DirectFB-1.4.5/systems/devmem/Makefile.in	2010-08-19 17:26:23.354000015 +0300
@@ -619,7 +619,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/systems/fbdev/Makefile.in DirectFB-1.4.5/systems/fbdev/Makefile.in
--- DirectFB-1.4.5-old/systems/fbdev/Makefile.in	2010-08-19 17:26:21.164000016 +0300
+++ DirectFB-1.4.5/systems/fbdev/Makefile.in	2010-08-19 17:26:23.373000014 +0300
@@ -628,7 +628,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/systems/osx/Makefile.in DirectFB-1.4.5/systems/osx/Makefile.in
--- DirectFB-1.4.5-old/systems/osx/Makefile.in	2010-08-19 17:26:21.161000014 +0300
+++ DirectFB-1.4.5/systems/osx/Makefile.in	2010-08-19 17:26:23.361000016 +0300
@@ -676,7 +676,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/systems/sdl/Makefile.in DirectFB-1.4.5/systems/sdl/Makefile.in
--- DirectFB-1.4.5-old/systems/sdl/Makefile.in	2010-08-19 17:26:21.165000015 +0300
+++ DirectFB-1.4.5/systems/sdl/Makefile.in	2010-08-19 17:26:23.377000015 +0300
@@ -764,7 +764,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/systems/vnc/Makefile.in DirectFB-1.4.5/systems/vnc/Makefile.in
--- DirectFB-1.4.5-old/systems/vnc/Makefile.in	2010-08-19 17:26:21.161000014 +0300
+++ DirectFB-1.4.5/systems/vnc/Makefile.in	2010-08-19 17:26:23.365000016 +0300
@@ -673,7 +673,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/systems/x11/Makefile.in DirectFB-1.4.5/systems/x11/Makefile.in
--- DirectFB-1.4.5-old/systems/x11/Makefile.in	2010-08-19 17:26:21.162000015 +0300
+++ DirectFB-1.4.5/systems/x11/Makefile.in	2010-08-19 17:26:23.369000015 +0300
@@ -615,7 +615,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/wm/default/Makefile.in DirectFB-1.4.5/wm/default/Makefile.in
--- DirectFB-1.4.5-old/wm/default/Makefile.in	2010-08-19 17:26:21.158000016 +0300
+++ DirectFB-1.4.5/wm/default/Makefile.in	2010-08-19 17:26:23.343000014 +0300
@@ -586,7 +586,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
diff -Nur DirectFB-1.4.5-old/wm/unique/Makefile.in DirectFB-1.4.5/wm/unique/Makefile.in
--- DirectFB-1.4.5-old/wm/unique/Makefile.in	2010-08-19 17:26:21.155000015 +0300
+++ DirectFB-1.4.5/wm/unique/Makefile.in	2010-08-19 17:26:23.258000016 +0300
@@ -950,7 +950,7 @@
 	if test -d $<.tmp; then rmdir $<.tmp; fi
 	mkdir $<.tmp
 	(cd $<.tmp && $(AR) x ../../$<)
-	$(LD) -o $@ -r $<.tmp/*.o
+	$(CC) $(CFLAGS) -Wl,-r -nostdlib -o $@ $<.tmp/*.o
 	rm -f $<.tmp/*.o && rmdir $<.tmp
 
 .PHONY: $(LTLIBRARIES:%.la=.libs/%.a)
