Skip to content

Commit

Permalink
Use CFLAGS for libseccomp from pkg-config also for the CFLAGS
Browse files Browse the repository at this point in the history
Otherwise the configure check for fchmodat2 afterwards fails because it
can not find the header files.
  • Loading branch information
darix committed May 20, 2024
1 parent a57abbd commit 56afe22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ case "$host_os" in
]))
if test "x$enable_seccomp_sandboxing" != "xno"; then
PKG_CHECK_MODULES([LIBSECCOMP], [libseccomp],
[CXXFLAGS="$LIBSECCOMP_CFLAGS $CXXFLAGS"])
[CXXFLAGS="$LIBSECCOMP_CFLAGS $CXXFLAGS" CFLAGS="$LIBSECCOMP_CFLAGS $CFLAGS"])
have_seccomp=1
AC_DEFINE([HAVE_SECCOMP], [1], [Whether seccomp is available and should be used for sandboxing.])
AC_COMPILE_IFELSE([
Expand Down

0 comments on commit 56afe22

Please sign in to comment.