summaryrefslogtreecommitdiffstats
path: root/patches/cfgsh-1.1.2/generic/cfgsh-libncurses.diff
blob: e4e0a91a02914a1ef7f0bdd8447d5d69fd04406b (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
32
33
34
35
36
From: Robert Schwebel <r.schwebel@pengutronix.de>
Subject: cfgsh: use ncurses

When compiling in ptxdist, we break with this error message:

arm-iwmmx-linux-gnueabi/bin/ld:
cannot find -lcurses
collect2: ld returned 1 exit status
make[1]: *** [cfgsh] Error 1

While there is probably a way to make it work with curses, let's go the
ncurese way for now.

Probably not for upstream.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>

---
 Makefile |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: cfgsh-1.1.2/Makefile
===================================================================
--- cfgsh-1.1.2.orig/Makefile
+++ cfgsh-1.1.2/Makefile
@@ -17,8 +17,8 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
 
-CFLAGS = -g -Wall
-LDFLAGS = -lcurses -lreadline -lpthread -lrt 
+CFLAGS := -g -Wall
+LDFLAGS := $(LDFLAGS) -lncurses -lreadline -lpthread -lrt
 
 EXECUTABLES = cfgsh