My application uses some shared libraries, which i need to package with the binary, and as per Debian Policy Rules
It is recommended that supporting files and run-time support programs that do not need to be invoked manually by users, but are nevertheless required for the package to function, be placed (if they are binary) in a subdirectory of
/usr/lib
, preferably under/usr/lib/package-name
.
So, I put my shared library e.g. libabc.so
in /usr/lib/myapp/
directory. After creating the debian package the binary fails to load as /usr/lib/myapp/
is not searched by the loader to load the directory. They don't recommend using RPATH
in the binary.
So what changes should i make in the Debian package, in the postinst
file or anything else to make it work.
dlopen
?