about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nix-daemon/local.mk2
-rw-r--r--src/nix-store/local.mk2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/nix-daemon/local.mk b/src/nix-daemon/local.mk
index bab84e7addbc..e5538bada0b2 100644
--- a/src/nix-daemon/local.mk
+++ b/src/nix-daemon/local.mk
@@ -6,6 +6,8 @@ nix-daemon_SOURCES := $(d)/nix-daemon.cc
 
 nix-daemon_LIBS = libmain libstore libutil libformat
 
+nix-daemon_LDFLAGS = -pthread
+
 ifeq ($(OS), SunOS)
         nix-daemon_LDFLAGS += -lsocket
 endif
diff --git a/src/nix-store/local.mk b/src/nix-store/local.mk
index dc049f348ff7..b887fe03389b 100644
--- a/src/nix-store/local.mk
+++ b/src/nix-store/local.mk
@@ -6,6 +6,6 @@ nix-store_SOURCES := $(wildcard $(d)/*.cc)
 
 nix-store_LIBS = libmain libstore libutil libformat
 
-nix-store_LDFLAGS = -lbz2
+nix-store_LDFLAGS = -lbz2 -pthread
 
 nix-store_CXXFLAGS = -DCURL=\"$(curl)\"