From d29576b365d47a0aa182206772183e1d85f96e17 Mon Sep 17 00:00:00 2001 From: Carles Cufi Date: Tue, 6 Sep 2016 21:37:40 +0200 Subject: [PATCH] kconfig: Specify ncurses explicitely On OS X (macOS), "make menuconfig" fails with missing linker symbols. By specifying the "-l" linker options with the menu, panel and ncurses libraries directly if the autodetection fails, it builds and links properly. Note that this might denote a problem with "check-lxdialog.sh". Change-Id: Ib2721646cc01c3e977911d8e6d0c8303dcedbc58 Signed-off-by: Carles Cufi --- scripts/kconfig/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 79bd3e37baf..59aea244e08 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -207,7 +207,8 @@ HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \ -Wno-missing-prototypes -HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) +HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC) \ + || echo "-lmenu -lpanel -lncurses") HOSTLOADLIBES_nconf = $(shell \ pkg-config --libs menuw panelw ncursesw 2>/dev/null \