bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xterm fails to link against local ncurses


From: Thomas Dickey
Subject: Re: xterm fails to link against local ncurses
Date: Thu, 25 Nov 2010 12:18:46 -0500 (EST)

On Thu, 25 Nov 2010, Christian Ebert wrote:

* Thomas Dickey on Thursday, November 25, 2010 at 11:46:46 -0500
On Thu, 25 Nov 2010, Christian Ebert wrote:
I'm running the most recent ncurses(w). I am building xterm
(267), but do not succeed in linking it against ncurses under
/usr/local. It always links against ncurses under /sw.

There are 3 ncurses on my machine (MacOS 10.5.8):

/usr - Apple shipped
/sw  - mandatory package for Fink distribution
/usr/local

I'm assuming you tried LDFLAGS=-L/usr/local/lib

Yes. All kinds of combinations. For CFLAGS as well.

configure even spits out:

checking for private terminfo-directory... /usr/local/share/terminfo

perhaps this configure option would help (in configuring xterm):

 --disable-rpath-hack    don't add rpath options for additional libraries

no joy, unfortunately.

(for one set of users or another, I've added in the configure scripts
checks to try to find where a library is, and use it at runtime -
occasionally that choice isn't what people want)

hmm (looking at the special options used in ncurses for darwin) perhaps

LDFLAGS=-Wl,-search_paths_first

would help - see for example

http://www.mail-archive.com/address@hidden/msg18032.html

I always get:

$ otool -L `which xterm` | grep ncurses
        /sw/lib/ncurses/libncurses.5.dylib (compatibility version 5.0.0, 
current version 5.0.0)

For comparison:

$ otool -L `which mutt` | grep ncurses
        /usr/local/lib/libncursesw.5.dylib (compatibility version 5.0.0, 
current version 5.0.0)


Thank you for looking into this.

c
--
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions

_______________________________________________
Bug-ncurses mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-ncurses


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]