diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2015-11-14 22:55:40 -0800 |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2015-11-14 23:14:44 -0800 |
commit | 6c49a232a81cf4f4f22a13b13e91af74e7edab32 (patch) | |
tree | b7aaf31ab91e9770018e233844de45a684dd1bfb /kconfig/Makefile | |
parent | 80e8c1135d7a8ab5875b9e616cec8f07f717504b (diff) | |
download | crosstool-ng-6c49a232a81cf4f4f22a13b13e91af74e7edab32.tar.gz crosstool-ng-6c49a232a81cf4f4f22a13b13e91af74e7edab32.tar.bz2 crosstool-ng-6c49a232a81cf4f4f22a13b13e91af74e7edab32.zip |
configure: Correctly search for tinfo for kconfig
I previously thought that tinfo could only be a link to libncurses in
modern ncurses installations. I was wrong.
Now we check for ncurses, then check for tinfo. If tinfo is a link to
ncurses, it is then not required to link against. But if libtinfo is
providing tgetent, and not libncurses, then we must add it to LIBS as
well.
Also, kconfig shouldn't hardcode -lncurses, it should use what is in
$(LIBS).
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Diffstat (limited to 'kconfig/Makefile')
-rw-r--r-- | kconfig/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfig/Makefile b/kconfig/Makefile index 27482afe..9f30566a 100644 --- a/kconfig/Makefile +++ b/kconfig/Makefile @@ -48,7 +48,7 @@ nconf_SRC = nconf.c nconf.gui.c nconf_OBJ = $(patsubst %.c,%.o,$(nconf_SRC)) nconf_DEP = $(patsubst %.c,%.dep,$(nconf_SRC)) $(nconf_OBJ) $(nconf_DEP): CFLAGS += $(INTL_CFLAGS) -I/usr/include/ncurses -nconf: LDFLAGS += -lmenu -lpanel -lncurses +nconf: LDFLAGS += -lmenu -lpanel $(LIBS) # These are generated files: ALL_OBJS = $(sort $(COMMON_OBJ) $(LX_OBJ) $(conf_OBJ) $(mconf_OBJ) $(nconf_OBJ)) |