From: oldtopman Date: Tue, 22 Nov 2016 06:11:58 +0000 (-0700) Subject: Added optional flag for linking curses with readline. X-Git-Tag: yosys-0.8~579^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=277f47857282fbf0740eaeeaaa0325631d4bb7dd;p=yosys.git Added optional flag for linking curses with readline. --- diff --git a/Makefile b/Makefile index aba77753d..567b1a5a1 100644 --- a/Makefile +++ b/Makefile @@ -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