diff --git a/mozilla/htmlparser/robot/Makefile.in b/mozilla/htmlparser/robot/Makefile.in
index cce2b28348b..7f854416c06 100644
--- a/mozilla/htmlparser/robot/Makefile.in
+++ b/mozilla/htmlparser/robot/Makefile.in
@@ -54,6 +54,7 @@ LIBS = \
-lxp \
-ljs \
-lxpcom \
+ -lreg \
$(TK_LIBS) \
$(ZLIB_LIBS) \
$(NSPR_LIBS) \
diff --git a/mozilla/parser/htmlparser/robot/Makefile.in b/mozilla/parser/htmlparser/robot/Makefile.in
index cce2b28348b..7f854416c06 100644
--- a/mozilla/parser/htmlparser/robot/Makefile.in
+++ b/mozilla/parser/htmlparser/robot/Makefile.in
@@ -54,6 +54,7 @@ LIBS = \
-lxp \
-ljs \
-lxpcom \
+ -lreg \
$(TK_LIBS) \
$(ZLIB_LIBS) \
$(NSPR_LIBS) \