]> git.proxmox.com Git - qemu.git/commitdiff
link seccomp only with softmmu targets
authorMichael Tokarev <mjt@tls.msk.ru>
Sat, 19 Jan 2013 14:58:09 +0000 (18:58 +0400)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 26 Jan 2013 13:19:57 +0000 (13:19 +0000)
Now, if seccomp is detected, it is linked into every executable,
but is used only by softmmu targets (from vl.c).  So link it
only where it is actually needed.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure

index c6172ef88e58e3e5be828a99e0a25cb8688c029e..b7635e4fec9d32d2fdcc1e2b538a272f47b97606 100755 (executable)
--- a/configure
+++ b/configure
@@ -1434,7 +1434,7 @@ fi
 
 if test "$seccomp" != "no" ; then
     if $pkg_config --atleast-version=1.0.0 libseccomp --modversion >/dev/null 2>&1; then
-        LIBS=`$pkg_config --libs libseccomp`
+        libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
        seccomp="yes"
     else
        if test "$seccomp" = "yes"; then