summaryrefslogtreecommitdiff
path: root/util/kconfig/patches/0013-util-kconfig-detect-ncurses-on-FreeBSD.patch
blob: 844234994174e7bd857e343925a8ba4ddcb3d26b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 8512ae9b9bd83f6051f63b0673903283788a2d12 Mon Sep 17 00:00:00 2001
From: Idwer Vollering <vidwer@gmail.com>
Date: Wed, 28 Jul 2021 20:15:29 +0200
Subject: [PATCH] util/kconfig: detect ncurses on FreeBSD

Signed-off-by: Idwer Vollering <vidwer@gmail.com>
Change-Id: I4344ba2116c0b8618357db4248d993509cbb666e
---
 util/kconfig/mconf-cfg.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/util/kconfig/mconf-cfg.sh b/util/kconfig/mconf-cfg.sh
index b520e407a8..2047e626b4 100755
--- a/util/kconfig/mconf-cfg.sh
+++ b/util/kconfig/mconf-cfg.sh
@@ -33,6 +33,12 @@ if [ -f /usr/include/ncurses/ncurses.h ]; then
 	exit 0
 fi
 
+# We'll want to be able to build on (Free)BSD:
+if [ -f /usr/include/ncurses.h ]; then
+	echo libs=\"-lncurses\"
+	exit 0
+fi
+
 # As a final fallback before giving up, check if $HOSTCC knows of a default
 # ncurses installation (e.g. from a vendor-specific sysroot).
 if echo '#include <ncurses.h>' | ${HOSTCC} -E - >/dev/null 2>&1; then
-- 
2.31.1