qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] configure: try pkg-config ncurses first
@ 2013-05-24 20:07 Ed Maste
  2013-05-25  4:25 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
  2013-05-27 19:44 ` Michael Tokarev
  0 siblings, 2 replies; 6+ messages in thread
From: Ed Maste @ 2013-05-24 20:07 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, 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 <emaste@freebsd.org>
---
 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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-05-27 19:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-24 20:07 [Qemu-devel] [PATCH] configure: try pkg-config ncurses first Ed Maste
2013-05-25  4:25 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2013-05-25 11:30   ` Ed Maste
2013-05-25 11:38   ` Andreas Färber
2013-05-25 11:58     ` Michael Tokarev
2013-05-27 19:44 ` Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).