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