I have a binary file that requires several shared libraries. I want to distribute it without the additional files. Is there a way to statically link it using only the binary and the libraries?
I have a binary file that requires several shared libraries. I want to distribute
Share
No there is no way to transform a program dynamically linking some libraries to a program statically linking them.
But why do you ask? Can’t you ship a shell wrapper which sets appropriately the
LD_LIBRARY_PATHbefore running the binary?