On 06/02/2014 04:50 AM, Gerd Hoffmann wrote: > @@ -1996,6 +1997,9 @@ if test "$gtk" != "no"; then > gtk_libs=`$pkg_config --libs $gtkpackage` > libs_softmmu="$gtk_libs $libs_softmmu" > gtk="yes" > + if $pkg_config --exists "$gtkx11package >= $gtkversion"; then > + gtk_libs="$gtk_libs -lX11" > + fi
You need to move this hunk above the libs_softmmu line, otherwise the assignment is unused. r~