I have mysql installed in a non standard location in slackware linux 11.

I also intalled qt-4.1.2 in a non standard location.

I've built mysql support directly into Qt build by passing the mysql include and lib paths in configure.
However, I am unable to actually run any program without setting the LD_LIBRARY_PATH with the mysql lib location, which I do not want to do.

(Note that the LD_LIBRARY_PATH that needs to be set is the same as
passed in configure -L).

Anybody can help me to fix this issue.

Thanks in Advance.