Support Linux distributions which install seccomp.h in places other than /usr/include
mato opened this issue · comments
OpenSUSE libseccomp-devel
installs seccomp.h
as /usr/include/libseccomp/seccomp.h
, unlike every other distribution we've tested so far.
In order to support this, a bunch of surgery needs to be done on the build system to figure out the libseccomp
location at configure.sh
time (possibly via pkg-config, but maybe not) and we then need have to pass -I
down to Makefiles via HOSTCPPFLAGS
.
See also #418.
(Note to self: Add ["libseccomp-devel"] {os-distribution = "suse"}
to spt bindings depexts:[]
file while we're at it)