1 From 8512ae9b9bd83f6051f63b0673903283788a2d12 Mon Sep 17 00:00:00 2001
2 From: Idwer Vollering <vidwer@gmail.com>
3 Date: Wed, 28 Jul 2021 20:15:29 +0200
4 Subject: [PATCH] util/kconfig: detect ncurses on FreeBSD
6 Signed-off-by: Idwer Vollering <vidwer@gmail.com>
7 Change-Id: I4344ba2116c0b8618357db4248d993509cbb666e
9 util/kconfig/mconf-cfg.sh | 6 ++++++
10 1 file changed, 6 insertions(+)
12 Index: kconfig/mconf-cfg.sh
13 ===================================================================
14 --- kconfig.orig/mconf-cfg.sh
15 +++ kconfig/mconf-cfg.sh
16 @@ -36,6 +36,12 @@ if [ -f /usr/include/ncurses/ncurses.h ]
20 +# We'll want to be able to build on (Free)BSD:
21 +if [ -f /usr/include/ncurses.h ]; then
22 + echo libs=\"-lncurses\"
26 # As a final fallback before giving up, check if $HOSTCC knows of a default
27 # ncurses installation (e.g. from a vendor-specific sysroot).
28 if echo '#include <ncurses.h>' | ${HOSTCC} -E - >/dev/null 2>&1; then