gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] [PATCH 2/3] always link against local libraries


From: Bernd Zeimetz
Subject: Re: [gpsd-dev] [PATCH 2/3] always link against local libraries
Date: Mon, 21 Nov 2011 20:41:57 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Icedove/3.1.13

On 11/21/2011 06:48 PM, Mike Frysinger wrote:
> On Monday 21 November 2011 11:44:31 Greg Troxel wrote:
>> Finding a .a or .so at link time is one thing.   What's not ok is to
>> have the binary look in . for a .so when it is run.
> 
> i'm not talking about RPATH.  my change doesn't affect RPATH.  it only 
> affects 
> linking.

Mike is right. Setting LIBPATH is fine. You have to distinguish between the link
time search path and the run time search path. As you want to be able to link
with -lgps at build time, you have to point LIBPATH to your build directory.

-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F



reply via email to

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