From patchwork Sat Jan 19 14:58:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: link seccomp only with softmmu targets Date: Sat, 19 Jan 2013 04:58:09 -0000 From: Michael Tokarev X-Patchwork-Id: 213864 Message-Id: <1358607489-12478-1-git-send-email-mjt@msgid.tls.msk.ru> To: Eduardo Otubo Cc: Michael Tokarev , qemu-devel@nongnu.org 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 --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 4ebb60d..509b3f1 100755 --- a/configure +++ b/configure @@ -1427,7 +1427,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