--- mozilla/layout/build/Makefile.in~	2007-11-24 00:38:14.000000000 -0200
+++ mozilla/layout/build/Makefile.in	2007-11-24 00:38:14.000000000 -0200
@@ -229,6 +229,11 @@
 		    $(NULL)
 endif
 
+ifdef MOZ_ENABLE_XFT
+EXTRA_DSO_LDOPTS += $(MOZ_XFT_LIBS) \
+		    $(NULL)
+endif
+
 ifneq (,$(MOZ_ENABLE_CANVAS)$(MOZ_SVG_RENDERER_CAIRO))
 EXTRA_DSO_LDOPTS += $(MOZ_CAIRO_LIBS) \
 		    $(NULL)