kconfig: optionally use pkg-config to detect ncurses libs
authorJustin Lecher <jlec@gentoo.org>
Wed, 6 Mar 2013 13:02:02 +0000 (14:02 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 6 Mar 2013 23:21:11 +0000 (00:21 +0100)
commit544e7e548fbe75cb93784cc02fc01ce1501286b6
treecd2d65e7ece81718af7d724545ffd321c6979b83
parentfc9c6e000f62c2eeda426d4d5f022b3d57729bb0
kconfig: optionally use pkg-config to detect ncurses libs

When building ncurses with --with-termlib several symbols get moved from
libncurses.so to libtinfo.so. Thus when linking with libncurses.so, one
additionally needs to link with libtinfo.so.

The ncurses pkg-config module will be used to detect the necessary libs for
linking. If not available the old way of directly specifying libs will be
used.

Signed-off-by: Justin Lecher <jlec@gentoo.org>
[yann.morin.1998@free.fr: fix typo: '-ncurses' --> '-lncurses']
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
scripts/kconfig/Makefile