Added optional flag for linking curses with readline.

This commit is contained in:
oldtopman 2016-11-21 23:11:58 -07:00
parent 3b73d3f140
commit 277f478572
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,7 @@ ENABLE_LIBYOSYS := 0
# other configuration flags
ENABLE_GPROF := 0
ENABLE_NDEBUG := 0
LINK_CURSES := 0
# clang sanitizers
SANITIZER =
@ -196,6 +197,10 @@ endif
ifeq ($(ENABLE_READLINE),1)
CXXFLAGS += -DYOSYS_ENABLE_READLINE
LDLIBS += -lreadline
ifeq ($(LINK_CURSES),1)
LDLIBS += -lcurses
ABCMKARGS += "ABC_READLINE_LIBRARIES=-lcurses -lreadline"
endif
ifeq ($(CONFIG),mxe)
LDLIBS += -lpdcurses
endif