diff --git a/libs/sqlite/configure.ac b/libs/sqlite/configure.ac index 3522235852..094548bc71 100644 --- a/libs/sqlite/configure.ac +++ b/libs/sqlite/configure.ac @@ -635,7 +635,7 @@ else AC_SEARCH_LIBS(tgetent, [readline ncurses curses termcap]) AC_CHECK_LIB([readline], [readline]) AC_CHECK_LIB([dl], [dlopen]) - TARGET_READLINE_LIBS="$LIBS" + TARGET_READLINE_LIBS="$LDFLAGS $LIBS" fi AC_SUBST(TARGET_READLINE_LIBS)