--- js/moz.configure.orig	2022-04-15 17:29:44 UTC
+++ js/moz.configure
@@ -919,7 +919,7 @@ has_readline = check_symbol(
 
 has_readline = check_symbol(
     "readline",
-    flags=["-lreadline"],
+    flags=["-lreadline", "-L%%LOCALBASE%%/lib"],
     when="--enable-readline",
     onerror=lambda: die("No system readline library found"),
 )
