commit 3158a3482b0093e41f2b2596fba50774ea31ae08 added a XkbGetKeyboard
call, we'll need libX11 for that.  Add it, otherwise the build will fail
with a linker error (unless X11 is linked anyway for other reasons, SDL
for example).

Cc: Richard Henderson <r...@twiddle.net>
Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 0e516f9..f9f7768 100755
--- a/configure
+++ b/configure
@@ -1993,7 +1993,7 @@ if test "$gtk" != "no"; then
     fi
     if $pkg_config --exists "$gtkpackage >= $gtkversion"; then
         gtk_cflags=`$pkg_config --cflags $gtkpackage`
-        gtk_libs=`$pkg_config --libs $gtkpackage`
+        gtk_libs="`$pkg_config --libs $gtkpackage` -lX11"
         libs_softmmu="$gtk_libs $libs_softmmu"
         gtk="yes"
     elif test "$gtk" = "yes"; then
-- 
1.8.3.1


Reply via email to