diff mbox

[for-1.5] configure: Pick up libseccomp include path

Message ID 1367159247-13441-1-git-send-email-afaerber@suse.de
State New
Headers show

Commit Message

Andreas Färber April 28, 2013, 2:27 p.m. UTC
openSUSE 12.3 has seccomp.h in /usr/include/libseccomp-1.0.1,
so add `pkg-config --cflags libseccomp` output to QEMU_CFLAGS.

Cc: qemu-stable@nongnu.org
Signed-off-by: Andreas Färber <afaerber@suse.de>
---
 configure | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Tokarev May 1, 2013, 4:53 p.m. UTC | #1
28.04.2013 18:27, Andreas Färber wrote:
> openSUSE 12.3 has seccomp.h in /usr/include/libseccomp-1.0.1,
> so add `pkg-config --cflags libseccomp` output to QEMU_CFLAGS.
> 
> Cc: qemu-stable@nongnu.org
> Signed-off-by: Andreas Färber <afaerber@suse.de>

Thanks, applied to qemu-trivial tree (372e47e9b5e31c493823d7f512716644fb02d0fd).

/mjt

>  configure | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/configure b/configure
> index 21438d4..643153f 100755
> --- a/configure
> +++ b/configure
> @@ -1505,6 +1505,7 @@ libs_softmmu="$libs_softmmu -lz"
>  if test "$seccomp" != "no" ; then
>      if $pkg_config --atleast-version=1.0.0 libseccomp --modversion >/dev/null 2>&1; then
>          libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
> +        QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`"
>  	seccomp="yes"
>      else
>  	if test "$seccomp" = "yes"; then
diff mbox

Patch

diff --git a/configure b/configure
index 21438d4..643153f 100755
--- a/configure
+++ b/configure
@@ -1505,6 +1505,7 @@  libs_softmmu="$libs_softmmu -lz"
 if test "$seccomp" != "no" ; then
     if $pkg_config --atleast-version=1.0.0 libseccomp --modversion >/dev/null 2>&1; then
         libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
+        QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`"
 	seccomp="yes"
     else
 	if test "$seccomp" = "yes"; then