diff options
| author | Paul Sokolovsky | 2014-02-27 18:10:40 +0200 |
|---|---|---|
| committer | Paul Sokolovsky | 2014-02-28 11:09:29 +0200 |
| commit | 793838a919c9cb848cb8c3f2d88d8b347bfd6083 (patch) | |
| tree | 1e0fad7ffdda1cced753fa5b8e4d118f2cf7c82f /unix/Makefile | |
| parent | 7ae69c6dc47be65fbc61140a00c38706ed880042 (diff) | |
MICROPY_USE_READLINE: Selects link lib, so should be defined in mpconfigport.mk
This change allows to build unix version without libreadline installed.
Diffstat (limited to 'unix/Makefile')
| -rw-r--r-- | unix/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/unix/Makefile b/unix/Makefile index 37583149c..b0899ecac 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -20,6 +20,12 @@ else LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-Map=$@.map,--cref endif +ifeq ($(MICROPY_USE_READLINE),1) +CFLAGS_MOD += -DMICROPY_USE_READLINE=1 +LDFLAGS_MOD += -lreadline +# the following is needed for BSD +#LDFLAGS_MOD += -ltermcap +endif ifeq ($(MICROPY_MOD_TIME),1) CFLAGS_MOD += -DMICROPY_MOD_TIME=1 SRC_MOD += time.c @@ -48,9 +54,6 @@ SRC_C = \ $(SRC_MOD) OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o)) -LIB = -lreadline -# the following is needed for BSD -#LIB += -ltermcap include ../py/mkrules.mk |
