diff --git a/mozilla/htmlparser/robot/Makefile.in b/mozilla/htmlparser/robot/Makefile.in
index 3004220ec2d..93d7578768f 100644
--- a/mozilla/htmlparser/robot/Makefile.in
+++ b/mozilla/htmlparser/robot/Makefile.in
@@ -52,6 +52,11 @@ LIBS = \
-lpref \
-lxp \
-l$(MOZ_LIB_JS_PREFIX)js \
+ -lgfxgtk \
+ -lraptorgfx \
+ -lgfxps \
+ -limg \
+ -lmozutil \
-lxpcom \
-lreg \
$(TK_LIBS) \
diff --git a/mozilla/parser/htmlparser/robot/Makefile.in b/mozilla/parser/htmlparser/robot/Makefile.in
index 3004220ec2d..93d7578768f 100644
--- a/mozilla/parser/htmlparser/robot/Makefile.in
+++ b/mozilla/parser/htmlparser/robot/Makefile.in
@@ -52,6 +52,11 @@ LIBS = \
-lpref \
-lxp \
-l$(MOZ_LIB_JS_PREFIX)js \
+ -lgfxgtk \
+ -lraptorgfx \
+ -lgfxps \
+ -limg \
+ -lmozutil \
-lxpcom \
-lreg \
$(TK_LIBS) \