Allow enabling or disabling readline support by setting HAVE_READLINE.

This commit is contained in:
Tor Andersson
2018-06-15 15:05:38 +02:00
parent 2be672cd30
commit ceac1b57d9
+6 -2
View File
@@ -23,9 +23,8 @@ endif
ifeq "$(shell uname)" "Linux"
CFLAGS += -ffunction-sections -fdata-sections
CFLAGS += -DHAVE_READLINE
LDFLAGS += -Wl,--gc-sections
LIBREADLINE += -lreadline
HAVE_READLINE := yes
endif
ifeq "$(build)" "debug"
@@ -38,6 +37,11 @@ else
LDFLAGS += -Wl,-s
endif
ifeq "$(HAVE_READLINE)" "yes"
CFLAGS += -DHAVE_READLINE
LIBREADLINE += -lreadline
endif
CFLAGS += $(XCFLAGS)
# You shouldn't need to edit anything below here.