[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: |
Eric Blake |
Subject: |
Re: make test with a program that dlopen()s a shared lib "peer" |
Date: |
Mon, 28 Mar 2011 11:05:19 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9 |
On 03/27/2011 05:46 AM, Jack Andrews wrote:
> i want to use the usual sequence of
>
> autoreconf --install
> ./configure
> make
> make test
> make install
>
> but my program dlopen()s a lib which
> i find here:
> .libs/libj.so
>
> i've read that shared objects are hidden in
> .libs for a reason and that they should be
> installed prior to use.
>
> if this is the case, how can i run tests
> "legally", before installing the .libs/libj.so ?
If I understand correctly,
libtool --mode=execute path/to/uninstalled/program
will do what you want - libtool will massage PATH behind the scenes
before spawning the wrapped uninstalled program so that it will
correctly pick up the .libs/*.so files in preference to anything installed.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature