--- /usr/portage/sys-libs/readline/readline-6.2_p4.ebuild 2013-02-18 01:01:33.000000000 +0100 +++ /usr/local/portage/andis_overlay/sys-libs/readline/readline-6.2_p4.ebuild 2013-04-02 22:41:12.190171802 +0200 @@ -67,6 +67,8 @@ # This is for rlfe, but we need to make sure LDFLAGS doesn't change # so we can re-use the config cache file between the two. append-ldflags -L. + export LDFLAGS="-ltinfo $LDFLAGS" + econf \ --cache-file="${S}"/config.cache \ --with-curses \