You can put the into the same directory as the executable or in any subfolder of your install path, e.g. a "lib" subdirectory.
Your application's start script then sets the $LD_LIBRARY_PATH variable such that this directory is part of the search path for libraries.
Something like
#!/bin/bash
INSTALL_FULLPATH=$(readlink -f "$0")
INSTALL_PATH=$(dirname "$INSTALL_FULLPATH")
LIB_PATH="$INSTALL_PATH"/lib
BIN_PATH="$INSTALL_PATH/bin"
export LD_LIBRARY_PATH="$LIB_PATH":$LD_LIBRARY_PATH
"$BIN_PATH"/program "$@"
#!/bin/bash
INSTALL_FULLPATH=$(readlink -f "$0")
INSTALL_PATH=$(dirname "$INSTALL_FULLPATH")
LIB_PATH="$INSTALL_PATH"/lib
BIN_PATH="$INSTALL_PATH/bin"
export LD_LIBRARY_PATH="$LIB_PATH":$LD_LIBRARY_PATH
"$BIN_PATH"/program "$@"
To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks