Browse Source

readline: fixed to link against libtinfo if ncurses is available

stable/0.2
Christian Wiese 14 years ago
parent
commit
e39b2708d2
  1. 8
      base/readline/readline.conf

8
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

Loading…
Cancel
Save