This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ncurses link problem...
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Peter Bergner <bergner at brule dot borg dot umn dot edu>
- Cc: binutils at sources dot redhat dot com, Olaf Hering <olh at suse dot de>, Steve Munroe <sjmunroe at us dot ibm dot com>
- Date: Fri, 28 Jun 2002 10:10:42 +0930
- Subject: Re: ncurses link problem...
- References: <3D19FB9C.9040505@vnet.ibm.com> <20020627111848.GD22093@bubble.sa.bigpond.net.au> <20020627155406.A733227@brule.borg.umn.edu>
On Thu, Jun 27, 2002 at 03:54:06PM -0500, Peter Bergner wrote:
> Note: 64-bit libncurses.so lives in /opt/ppc64-20020627/extras/lib64
> and /opt/ppc64-20020627/extras/lib64 is in ld.so.conf.
>[snip]
> brule% /opt/ppc64-20020627/powerpc64-linux/bin/gcc rain.c -lncurses
You'll need a -L here. The magic ld.so.conf (and LD_LIBRARY_PATH,
LD_RUN_PATH) searchs are only for libraries in a DT_NEEDED entry.
ie. when you specify -lfoo without -lbar, and foo.so needs bar.so
--
Alan Modra
IBM OzLabs - Linux Technology Centre