about summary refs log tree commit diff
path: root/src/libstore/local.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/local.mk')
-rw-r--r--src/libstore/local.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/local.mk b/src/libstore/local.mk
index 89fc918c30fd..d690fea28c23 100644
--- a/src/libstore/local.mk
+++ b/src/libstore/local.mk
@@ -39,9 +39,12 @@ libstore_CXXFLAGS = \
  -DNIX_LIBEXEC_DIR=\"$(libexecdir)\" \
  -DNIX_BIN_DIR=\"$(bindir)\" \
  -DNIX_MAN_DIR=\"$(mandir)\" \
- -DSANDBOX_SHELL="\"$(sandbox_shell)\"" \
  -DLSOF=\"$(lsof)\"
 
+ifneq ($(sandbox_shell),)
+libstore_CXXFLAGS += -DSANDBOX_SHELL="\"$(sandbox_shell)\""
+endif
+
 $(d)/local-store.cc: $(d)/schema.sql.gen.hh
 
 $(d)/build.cc: