Skip to contentSkip to conversation

configure: Pick up libseccomp include path

PATCH Applied Andreas Färber 2 participants 2 messages Apr 28, 2013 – May 1, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: Pick up libseccomp include path

openSUSE 12.3 has seccomp.h in /usr/include/libseccomp-1.0.1, so add pkg-config --cflags libseccomp output to QEMU_CFLAGS.

---
 configure | 1 +
 1 file changed, 1 insertion(+)
configure +1 -0
index 21438d4..643153f 100755
@@ -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
Signature · 1 line
1.8.1.4
#1 lore raw
Quoted 5 lines · Andreas Färber

openSUSE 12.3 has seccomp.h in /usr/include/libseccomp-1.0.1, so add pkg-config --cflags libseccomp output to QEMU_CFLAGS.

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

/mjt

Quoted 15 lines
 configure | 1 +
 1 file changed, 1 insertion(+)
configure +1 -0
index 21438d4..643153f 100755
@@ -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