diff options
Diffstat (limited to 'src/nix/local.mk')
-rw-r--r-- | src/nix/local.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix/local.mk b/src/nix/local.mk index 21f190e476f4..e71cf16fabf6 100644 --- a/src/nix/local.mk +++ b/src/nix/local.mk @@ -6,6 +6,8 @@ nix_SOURCES := $(wildcard $(d)/*.cc) nix_LIBS = libexpr libmain libstore libutil libformat -nix_LDFLAGS = -lreadline +ifeq ($(HAVE_READLINE), 1) + nix_LDFLAGS += -lreadline +endif $(eval $(call install-symlink, nix, $(bindir)/nix-hash)) |