commit 6b175f492a212a8ffede03b164c2f980384cc59d
Author: Aurelien Jarno <aurelien@aurel32.net>
Date:   Sun Jan 8 13:38:23 2012 +0100

    configure: fix library linking for smartcard NSS and usbredir
    
    configure script currently add smartcard NSS and usbredir libraries to
    LIBS instead of libs_softmmu. This cause even the qemu-user builds to
    link with them, and causes some problems with --static as NSS libraries
    are usually not available as static.
    
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

Index: qemu/configure
===================================================================
--- qemu.orig/configure	2012-05-07 15:45:39.579418050 -0700
+++ qemu/configure	2012-05-07 15:45:39.667418496 -0700
@@ -2649,7 +2649,7 @@
         usb_redir_cflags=$($pkg_config --cflags libusbredirparser 2>/dev/null)
         usb_redir_libs=$($pkg_config --libs libusbredirparser 2>/dev/null)
         QEMU_CFLAGS="$QEMU_CFLAGS $usb_redir_cflags"
-        LIBS="$LIBS $usb_redir_libs"
+        libs_softmmu="$libs_softmmu $usb_redir_libs"
     else
         if test "$usb_redir" = "yes"; then
             feature_not_found "usb-redir"
