Re: mutt on macOS and --with-curses=DIR

Dennis Preiser <[email protected]>
Newsgroups gmane.mail.mutt.devel
Message-ID <[email protected]>
On Sun, Apr 12, 2026 at 01:29:45PM +0200, Fabian Groffen via Mutt-dev wrote:
> On 12-04-2026 12:54:42 +0200, Dennis Preiser wrote:
> > ncurses:
> > 
> > dennis@coredump:~/src/ncurses-6.6-20260411% ./configure --prefix=${MY_PREFIX} --mandir=${MY_PREFIX}/share/man --with-shared --without-debug --enable-widec --disable-home-terminfo --enable-sigwinch --without-ada --disable-rpath --enable-colorfgbg --without-tests --with-pcre2 --with-pkg-config --enable-pc-files
> 
> Add --enable-overwrite here, so you get libcurses symlink.

I think that only applies to header files.

|   --disable-overwrite     put headers in subdir, omit link to -lcurses


With --enable-overwrite, the header files are installed directly under
~/sw/include instead of in a subdirectory ~/sw/include/ncursesw.

This doesn't change the result.

% otool -L mutt
mutt:
	/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
	/Users/dennis/sw/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.3.2)
	/Users/dennis/sw/lib/libssl.3.dylib (compatibility version 3.0.0, current version 3.0.0)
	/Users/dennis/sw/lib/libcrypto.3.dylib (compatibility version 3.0.0, current version 3.0.0)
	/usr/lib/libsasl2.2.dylib (compatibility version 3.0.0, current version 3.15.0)
	/Users/dennis/sw/lib/liblmdb.dylib (compatibility version 0.0.0, current version 0.0.0)
	/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1356.0.0)

> ncurses tries to "protect" you here, but in reality you really want to
> "overwrite" the host/system ncurses.
> 
> lrwxr-xr-x 1 fabian staff 18 Feb  9 18:29 libncurses.dylib -> libncurses.6.dylib

% ls -l ~/sw/lib/*curs*
-rw-r--r--@ 1 dennis  staff  111536 Apr 12 14:05 /Users/dennis/sw/lib/libncurses++w.a
-rwxr-xr-x@ 1 dennis  staff  364096 Apr 12 14:01 /Users/dennis/sw/lib/libncursesw.6.dylib
-rw-r--r--@ 1 dennis  staff  642392 Apr 12 14:05 /Users/dennis/sw/lib/libncursesw.a
lrwxr-xr-x@ 1 dennis  staff      19 Apr 12 14:01 /Users/dennis/sw/lib/libncursesw.dylib -> libncursesw.6.dylib

Dennis
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.