$OpenBSD: patch-configure_ac,v 1.3 2019/08/06 20:58:26 sthen Exp $
Index: configure.ac
--- configure.ac.orig
+++ configure.ac
@@ -231,7 +231,7 @@ dnl This will DEFINE the readline headers.
 RL_LIB_READLINE_INCLUDES
 
 dnl Made it this far, add the readline and termcap LIBS
-LIBS="-lreadline $TERMCAP_LIB $LIBS"
+LIBS="-lereadline $TERMCAP_LIB $LIBS"
 dnl Add the ncurses/curses lib, if it's not the same as the termcap lib
 if test "$TERMCAP_LIB" != "-l$curses_lib_name"; then
   LIBS="-l$curses_lib_name $LIBS"
