PDA

View Full Version : libqt runtime search path



Yendor
12-31-2001, 01:53 PM
Don't know if any of you all would think this was a good idea or not.... but I don't let that stop me...

I did this on my install. Since I run other apps that need the system install libqt/libqt-mt I don't put the gcc3 compiled ones in my default search path (or added to ldconfig's search). Which means I have to se LD_LIBRARY_PATH to point to it when I want to run showeq. If you specify "-rpath /usr/lib/qtgcc3-2.3.2" when linking it will hard code in that path to the binary and you won't have to worry about it finding the wrong one. Normally this would be bad, but under this circumstance I think it is rather helpful. It's a simple change to acinclude.m4.

I just find it useful. Just as easily could have a script thats sets the right search path before running seq... i just like having it all built in.

In acinclude.m4 I just changed
QT_LDFLAGS="-L$qt_libraries"
to
QT_LDFLAGS="-L$qt_libraries -rpath $qt_libraries
then remake the autoconf stuff and there ya go.