diff options
author | Ed Maste <emaste@freebsd.org> | 2013-05-24 16:07:00 -0400 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2013-06-01 14:25:38 +0400 |
commit | cfeda5f4b8710b6ba14131df8e287021b729b784 (patch) | |
tree | 0aee0cfe4387b11cf642dc60f98f4760b8dc9b50 | |
parent | d720e9831cab9934079d36a5fe3ebcdded4cb3a7 (diff) |
configure: try pkg-config ncurses first
When probing for ncurses, try pkg-config first rather than after
explicit -lncurses and -lcurses. This fixes static linking in the case
that ncurses has additional dependencies, such as -ltinfo (as on FreeBSD).
Signed-off-by: Ed Maste <emaste@freebsd.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2157,7 +2157,7 @@ if test "$curses" != "no" ; then if test "$mingw32" = "yes" ; then curses_list="-lpdcurses" else - curses_list="-lncurses:-lcurses:$($pkg_config --libs ncurses 2>/dev/null)" + curses_list="$($pkg_config --libs ncurses 2>/dev/null):-lncurses:-lcurses" fi curses_found=no cat > $TMPC << EOF |