mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
Check for libreadline
This commit is contained in:
parent
a1a5e63e14
commit
73bba12d8b
7 changed files with 22 additions and 5 deletions
|
@ -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))
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#if HAVE_LIBREADLINE
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
|
||||
|
@ -726,3 +728,5 @@ struct CmdRepl : StoreCommand
|
|||
static RegisterCommand r1(make_ref<CmdRepl>());
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue