Skip to content

Commit

Permalink
Adjusted the linker flags for kconfig mconf (menuconfig)
Browse files Browse the repository at this point in the history
For some reason, this breaks on my Gentoo systems.  There,
libcurses does not contain nodelay, so the linking fails
with symbol resolution errors regarding the nodelay symbol.

I have changed it to use pkg-config --libs ncurses, which,
in my case, adds -ltinfo to fix this issue.

Signed-off-by: Michael T. Kloos <[email protected]>
  • Loading branch information
echelonxray committed Apr 9, 2022
1 parent 6018289 commit f5e519e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kconfig/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ gen_config.h: .config

kconfig/mconf: $(SHIPPED)
$(HOSTCC) -o $@ kconfig/mconf.c kconfig/zconf.tab.c \
kconfig/lxdialog/*.c -lcurses -DCURSES_LOC="<ncurses.h>" \
kconfig/lxdialog/*.c -lcurses -ltinfo -DCURSES_LOC="<ncurses.h>" \
-DKBUILD_NO_NLS=1 -DPROJECT_NAME=\"$(KCONFIG_PROJECT)\"

kconfig/conf: $(SHIPPED)
Expand Down

0 comments on commit f5e519e

Please sign in to comment.