@ranvel to be more specific, for a given folder PREFIX
, this is my ncurses config:
./configure --prefix="$PREFIX" --enable-widec
and this is my nano config:
./configure --prefix="$PREFIX" --disable-nls --enable-utf8 --enable-year2038 NCURSESW_CFLAGS="-I$PREFIX/include" NCURSESW_LIBS="-L$PREFIX/lib -lncursesw"
With ncurses 6.5 and nano 8.5, that leads to a bunch of linker failures for imports with "$NCURSES60" suffix... which comes from Apple's SDK. And if you look at nano src, you can find this:
/* Prefer wide ncurses over normal ncurses over curses. */
#if defined(HAVE_NCURSESW_NCURSES_H)
#include <ncursesw/ncurses.h>
#elif defined(HAVE_NCURSES_H)
#include <ncurses.h>
#else
#include <curses.h>
#endif
So unless you define HAVE_NCURSESW_NCURSES_H
, it will include the wrong header. And while HAVE_NCURSES_H
shows up in configure
, HAVE_NCURSESW_NCURSES_H
does not...