libtool
[Top][All Lists]
Advanced

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

Re: Distributable libraries


From: Olivier Boudeville
Subject: Re: Distributable libraries
Date: Sun, 07 Dec 2008 14:04:55 +0100
User-agent: Thunderbird 2.0.0.18 (X11/20081125)

Ralf Wildenhues a écrit :
> Hello Olivier,
>
> * Olivier Boudeville wrote on Fri, Dec 05, 2008 at 11:25:12AM CET:
>   
>> I am working in a program which I would like to distribute on binary
>> form for various OS including GNU/Linux. The program is made of an
>> executable and two libraries, and its build system is based on the
>> autotools. My problem is that libtool links that executable with these
>> two installed libraries with rpath.
>>     
>
> When configuring the package, use a prefix/libdir that is searched by
> default by the runtime linker.  Then libtool will add no run paths.
> For example, you can use 'configure --prefix=/usr' or 'configure
> --libdir=/usr/lib' or something similar.
>
> If you need the 'make install' step in order to end up with the
> installed binaries (which you should do!), then use DESTDIR to
> avoid your files overwriting system files.
>
> Of course, on your users' systems, your program will only work if
> you install the libraries where the runtime linker will find them
> by default.  If you need to be able to move them, then instead of
> the above recommendation, please consider using the gnulib
> relocatable-{lib,prog} modules.  See the gnulib page for more
> information.
>
> Hope that helps.
>
> Cheers,
> Ralf
>
>
>   
Hello Ralf,

thanks for your information. I think that before a release I will
install my libraries directly in the system tree (currently they are
installed in a prefixed directory indeed) and link the program with
them, so that no rpath is set. The distributed files will come with a
wrapper script that will set the appropriate LD_LIBRARY_PATH so that for
the end user the distributed libraries can be found even if not
specifically installed.

Thanks again,

Olivier.






reply via email to

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