about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-11-16T11·30+0100
committeraszlig <aszlig@redmoonstudios.org>2016-11-16T15·48+0100
commit1c52e344c48e9cb8cf2b332201d5c96c06e4cf3e (patch)
tree2ad9578b76f342111e27d8cf6fb923fcdeeef62e /src/libstore
parente8838713df29d94529ea4d7865180e936393340b (diff)
Add build dependency for libseccomp
We're going to use libseccomp instead of creating the raw BPF program,
because we have different syscall numbers on different architectures.

Although our initial seccomp rules will be quite small it really doesn't
make sense to generate the raw BPF program because we need to duplicate
it and/or make branches on every single architecture we want to suuport.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/local.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/local.mk b/src/libstore/local.mk
index 9d5c04dca0c5..a8222025cf7e 100644
--- a/src/libstore/local.mk
+++ b/src/libstore/local.mk
@@ -18,6 +18,10 @@ ifeq ($(OS), SunOS)
 	libstore_LDFLAGS += -lsocket
 endif
 
+ifeq ($(OS), Linux)
+	libstore_LDFLAGS += -lseccomp
+endif
+
 libstore_CXXFLAGS = \
  -DNIX_PREFIX=\"$(prefix)\" \
  -DNIX_STORE_DIR=\"$(storedir)\" \