[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make test with a program that dlopen()s a shared lib "peer"
From: |
Dan Nicholson |
Subject: |
Re: make test with a program that dlopen()s a shared lib "peer" |
Date: |
Tue, 29 Mar 2011 05:36:28 -0700 |
On Tue, Mar 29, 2011 at 4:46 AM, Jack Andrews <address@hidden> wrote:
> Hi Eric,
>
> That make perfect sense -- only thing is it doesn't seem to work for me:
>
> ~/effbiae/core(ENV)]$ echo $LD_LIBRARY_PATH
> /home/jack/effbiae/core/.libs
> ~/effbiae/core(ENV)]$ ./jconsole
> 'hi'
> hi
> ~/effbiae/core(ENV)]$ export LD_LIBRARY_PATH=
> ~/effbiae/core(ENV)]$ echo $LD_LIBRARY_PATH
>
> ~/effbiae/core(ENV)]$ libtool --mode=execute ./jconsole
> Load library libj.so failed.
I'm guessing your file layout, but try "./libtool --mode=execute
-dlopen libj.la ./jconsole". libtool will build up LD_LIBRARY_PATH in
that case. If the program had been linked directly to libj.so, then it
would have rpath entries pointing to the in-tree directory. Look at
"./libtool --help --mode=execute".
--
Dan