putting shared object files in the same folder as the executable

hi,
i am coding a project that does not obey to the standard linux path-scheme. it consists of one executable and two shared libraries (plus some plugins that also need these shared libs, but thats not part of the question). all three should live in the same folder. this works nice on windows but fails on linux, as the dynamic linker does not search the path of the executable for shared libs. is there any way, this can be done?

thanks in advance,
thomas
export LD_LIBRARY_PATH as like this:
export LD_LIBRARY_PATH=path_of_your_shared_object:$LD_LIBRARY_PATH
so i dont get around writing a starter-script i suppose. so the question is (maybe one of you guys knows...), how a bash-script can find out, where it is in the filesystem?
Topic archived. No new replies allowed.