diff --git a/mozilla/htmlparser/robot/Makefile.in b/mozilla/htmlparser/robot/Makefile.in
index 93d7578768f..820e2ad37da 100644
--- a/mozilla/htmlparser/robot/Makefile.in
+++ b/mozilla/htmlparser/robot/Makefile.in
@@ -52,7 +52,7 @@ LIBS = \
-lpref \
-lxp \
-l$(MOZ_LIB_JS_PREFIX)js \
- -lgfxgtk \
+ -lgfx$(MOZ_TOOLKIT) \
-lraptorgfx \
-lgfxps \
-limg \
diff --git a/mozilla/parser/htmlparser/robot/Makefile.in b/mozilla/parser/htmlparser/robot/Makefile.in
index 93d7578768f..820e2ad37da 100644
--- a/mozilla/parser/htmlparser/robot/Makefile.in
+++ b/mozilla/parser/htmlparser/robot/Makefile.in
@@ -52,7 +52,7 @@ LIBS = \
-lpref \
-lxp \
-l$(MOZ_LIB_JS_PREFIX)js \
- -lgfxgtk \
+ -lgfx$(MOZ_TOOLKIT) \
-lraptorgfx \
-lgfxps \
-limg \