diff --git a/base/readline/readline.conf b/base/readline/readline.conf index 092d9a3c0..27484cd43 100644 --- a/base/readline/readline.conf +++ b/base/readline/readline.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../readline/readline.conf -# Copyright (C) 2009 The OpenSDE Project +# Copyright (C) 2009 - 2011 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2003 Clifford Wolf # @@ -26,3 +26,9 @@ pkg_readline_preconf() { } hook_add preconf 5 "pkg_readline_preconf" + +# link against libtinfo from ncurses avoiding undefined references in +# third party applications which link against libreadline +if pkginstalled ncurses; then + var_append GCC_WRAPPER_INSERT ' ' "-L$( pkgprefix -r libdir ncurses ) -ltinfo" +fi