about summary refs log tree commit diff
path: root/src/nix-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-daemon')
-rw-r--r--src/nix-daemon/local.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nix-daemon/local.mk b/src/nix-daemon/local.mk
index db071a3f7c7e..bab84e7addbc 100644
--- a/src/nix-daemon/local.mk
+++ b/src/nix-daemon/local.mk
@@ -6,4 +6,8 @@ nix-daemon_SOURCES := $(d)/nix-daemon.cc
 
 nix-daemon_LIBS = libmain libstore libutil libformat
 
+ifeq ($(OS), SunOS)
+        nix-daemon_LDFLAGS += -lsocket
+endif
+
 $(eval $(call install-symlink, nix-daemon, $(bindir)/nix-worker))