I'm developing an application that hosts the Mono runtime on linux, so it has a dependency to libmono.so. The application only has one file and I compile it with the following command:
gcc -o HostApp main.c `pkg-config --cflags --libs mono`
This way I'm linking against the system libraries, however I plan to deploy this app without requiring mono installed on the system, so I want to place my own version of libmono.so(which I compiled from svn) in the executable's dir and force the HostApp to link against it instead of looking for it in the system. Anyone has any idea on how I should proceed?
Thanks in advance.