Update tty-clock to version 2.3 (#680)
[termux-packages] / packages / tty-clock / Makefile.patch
1 diff --git a/Makefile b/Makefile
2 index 5028ee4..6294b23 100644
3 --- a/Makefile
4 +++ b/Makefile
5 @@ -11,7 +11,8 @@ MANPATH = ${DESTDIR}${PREFIX}/share/man/man1
6
7 ifeq ($(shell sh -c 'which ncurses5-config>/dev/null 2>/dev/null && echo y'), y)
8 CFLAGS += -Wall -g $$(ncurses5-config --cflags)
9 - LDFLAGS += $$(ncurses5-config --libs)
10 + # Overwrite instead of appending LDFLAGS, because `ncurses-config --libs` also returns -ltinfo, which it can't find
11 + LDFLAGS ?= $$(ncurses5-config --libs)
12 else ifeq ($(shell sh -c 'which ncursesw5-config>/dev/null 2>/dev/null && echo y'), y)
13 CFLAGS += -Wall -g $$(ncursesw5-config --cflags)
14 LDFLAGS += $$(ncursesw5-config --libs)