yet another follow-up for linux.370 ncursesw

This commit is contained in:
nhmall
2022-06-02 16:31:30 -04:00
parent cc2332946e
commit 168ee4c9a8
+8 -7
View File
@@ -102,15 +102,16 @@ ifeq "$(USE_CURSESLIB)" "1"
# Without CURSES_UNICODE the following simpler setting works. # Without CURSES_UNICODE the following simpler setting works.
# CURSESLIB = -lncurses -ltinfo # CURSESLIB = -lncurses -ltinfo
ifdef MAKEFILE_SRC ifdef MAKEFILE_SRC
HAVE_NCURSESW = $(shell expr `pkg-config ncursesw --libs >/dev/null; echo $$?` = 0) comma:=,
endif NCURSES_LFLAGS = $(shell pkg-config ncursesw --libs)
ifeq "$(HAVE_NCURSESW)" "1" CURSESLIB += $(subst -Wl$(comma)-Bsymbolic-functions,,$(NCURSES_LFLAGS))
CURSESLIB = -lncursesw ifneq (,$(findstring ncursesw, $(CURSESLIB)))
HAVE_NCURSESW=1
else else
CURSESLIB = -lncurses HAVE_NCURSESW=0
endif #HAVE_NCURSESW endif
CURSESLIB += -ltinfo
WINLIB += $(CURSESLIB) WINLIB += $(CURSESLIB)
endif #MAKEFILE_SRC
endif #USE_CURSESLIB endif #USE_CURSESLIB
# NetHack sources control # NetHack sources control