From 73bba12d8ba1bff2b2c0266a7fdbe1ee8ab0ad6a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 28 Apr 2017 16:53:56 +0200 Subject: Check for libreadline --- src/nix/local.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/nix/local.mk') diff --git a/src/nix/local.mk b/src/nix/local.mk index 21f190e47..e71cf16fa 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)) -- cgit v1.2.3