Re: GD Shared library confusion

From: Date: Sat, 02 Mar 2002 16:15:46 +0000
Subject: Re: GD Shared library confusion
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-80608@lists.php.net to get a copy of this message
At 08:03 AM 3/2/2002 -0800, Rasmus Lerdorf wrote:
If the system also has a /usr/lib/libgd.so then as of 4.2.0 the -lgd is picking up this shared library. I suppose the only way around this is to use a full path to the static library in the link line instead of -lgd. Does a full path library link work for a shared library as well? I didn't think it did.
Nope it doesn't but you can use -L/path/to/shared_lib and then -lgd. I don't think a -L/path is going to override the LD_LIBRARY_PATH though for a shared library.
No it doesn't for loading. I thought you were talking about the build itself. I think there's a way to embed the actual LD_LIBRARY_PATH in the binary but I forgot how :) Andi

« previous php.dev (#80608) next »