[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Libtool is linking the wrong library (location) in and I can't figur
Re: Libtool is linking the wrong library (location) in and I can't figure out what's causing it.
Sat, 27 Oct 2012 04:33:14 -0400
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1
On 10/26/2012 07:22 PM, Dan Nicholson wrote:
Sorry if this is terse, I'm on my phone. In the first case, you're
using a library, liblog4cplus.so, that's installed in your home
directory. Libtool sees this as outside the dynamic linker's path and
adds a runpath so you're program will find the library at runtime
without setting any environment variables. This is either helpful or a
nuisance depending on your perspective.
One thing I'd suggest is rather than toying with prefix, which tells
the tools where you're going to run the program from, use the DESTDIR
make variable to stage the installation into your home directory.
Thanks for the input. While the liblog4cplus.so was in my home
directory, it was also in /usr/lib. Libtool is just too smart I guess.
The solution was to clear the build directory before the make. You're
observation was key to that solution. I suspect the DESTDIR would have
also worked but since I didn't need the files in the build directory
once the rpmbuild was completed, it made sense to clean them up.
Thank you very much,