about summary refs log tree commit diff
path: root/src/libstore/local.mk
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-04-20T17·11+0200
committerEelco Dolstra <edolstra@gmail.com>2017-04-20T17·11+0200
commit749696e71c9d637a36ab09a1368dff01b2b1bda8 (patch)
tree9eda8ac38cf43f332bbb6f4b8a753b0b7fffd2e8 /src/libstore/local.mk
parentefa4bdbfcd1489527bcf6f20a49c9a3bca8bbf6b (diff)
Detect lsof
Also, don't use lsof on Linux since it's not needed.

Fixes #1328.
Diffstat (limited to 'src/libstore/local.mk')
-rw-r--r--src/libstore/local.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/local.mk b/src/libstore/local.mk
index 9d5c04dca0c5..4da20330cf3f 100644
--- a/src/libstore/local.mk
+++ b/src/libstore/local.mk
@@ -27,7 +27,8 @@ libstore_CXXFLAGS = \
  -DNIX_CONF_DIR=\"$(sysconfdir)/nix\" \
  -DNIX_LIBEXEC_DIR=\"$(libexecdir)\" \
  -DNIX_BIN_DIR=\"$(bindir)\" \
- -DBASH_PATH="\"$(bash)\""
+ -DBASH_PATH="\"$(bash)\"" \
+ -DLSOF=\"$(lsof)\"
 
 $(d)/local-store.cc: $(d)/schema.sql.hh