Skip to content

Commit

Permalink
Fix mconfig seccomp detection on Opensuse
Browse files Browse the repository at this point in the history
  • Loading branch information
cclerget authored and ikaneshiro committed Sep 16, 2019
1 parent 7ff567f commit 79845ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlocal/checks/project-post.chk
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,9 @@ fi
# libseccomp dev
########################
printf " checking: libseccomp+headers... "
seccomp_iflags=`pkg-config --cflags-only-I libseccomp 2>/dev/null || true`
if ! printf "#include <seccomp.h>\nint main() { seccomp_syscall_resolve_name(\"read\"); }" | \
$tgtcc $user_cflags $ldflags -x c -o /dev/null - -lseccomp >/dev/null 2>&1; then
$tgtcc $user_cflags $ldflags $seccomp_iflags -x c -o /dev/null - -lseccomp >/dev/null 2>&1; then
tgtstatic=0
echo "no"
else
Expand Down

0 comments on commit 79845ef

Please sign in to comment.