-
-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
Hi, ncurses comes with macOS, but to make use of it the naming is slightly different. In homebrew there is a rule that replaces lncursesw with lncurses:
inreplace %w[configure Makefile], "lncursesw", "lncurses"But it would be better if the configure script could handle this platform detail automatically. Your configure script is a shell script so you could use something like:
PLATFORM=$(uname -s)
if [[ $PLATFORM = 'Darwin' ]]; then
...
fiFor the makefile, at least according to stack exchange:
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LDFLAGS+=-lncurses
else
LDFLAGS+=-lncursesw
end
I can make a pull request if you want...
Metadata
Metadata
Assignees
Labels
No labels