diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-04 09:16:26 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-04 09:16:26 +0200 |
commit | 3798cd5e7ed9451e28319e917a571602d0259444 (patch) | |
tree | 26ae3337e035660d0a0a18cd549b41dbd098f1fa /adk/config/Makefile | |
parent | c7fef6dc4a2fb5a490678c8ef908c0b546cec9fd (diff) |
only link tinfo when available
Diffstat (limited to 'adk/config/Makefile')
-rw-r--r-- | adk/config/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/adk/config/Makefile b/adk/config/Makefile index 1c17f800c..1b2b3d2c5 100644 --- a/adk/config/Makefile +++ b/adk/config/Makefile @@ -10,7 +10,11 @@ HOST_CFLAGS:=-DKBUILD_NO_NLS -O0 -g0 -w -static-libgcc all: ncurses conf mconf -LIBS= -lncurses -ltinfo +LIBS= -lncurses +ifeq (/usr/lib/libtinfo.so, $(wildcard /usr/lib/libtinfo.so)) +LIBS+= -ltinfo +endif + ifeq (/usr/include/ncurses/ncurses.h, $(wildcard /usr/include/ncurses/ncurses.h)) HOST_CFLAGS+= -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" else |