From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfyGb-0008LK-03 for qemu-devel@nongnu.org; Fri, 24 May 2013 16:07:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfyGV-00075L-2A for qemu-devel@nongnu.org; Fri, 24 May 2013 16:07:08 -0400 Received: from [216.171.111.232] (port=24413 helo=freebsd.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfyGU-00074z-Sq for qemu-devel@nongnu.org; Fri, 24 May 2013 16:07:03 -0400 From: Ed Maste Date: Fri, 24 May 2013 16:07:00 -0400 Message-Id: <1369426020-39060-1-git-send-email-emaste@freebsd.org> Subject: [Qemu-devel] [PATCH] configure: try pkg-config ncurses first List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Ed Maste 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 --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index cfdb564..7c99ef9 100755 --- a/configure +++ b/configure @@ -2157,7 +2157,7 @@ fi 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 if test "$curses" != "no" ; then -- 1.7.11.5