Re: Static build of mc

On Mon, 12 Sep 2016, Erdmut Pfeifer wrote:

You don't necessarily need to create a statically linked version to get it to run on a different box. just pack up all required shared libs (use "ldd" to find out which) plus the dynamic loader itself. The dynamic loader is normally invoked indirectly via the system, but nothing keeps you from calling it directly, passing it the name of the dynamically linked binary to run and the directory where the packed-up libs reside - see "man" for details ("" is the generic name of the dynamic loader, the actual name on today's 64-bit boxes is typically, which itself is a symlink to ld-<version>.so). The loader is a statically linked binary, and thus doesn't need any libs itself.

I'm not quite sure why it needs to be so complicated. Why can't you simply use the loader from the target system and set LD_LIBRARY_PATH accordingly?

Sincerely yours,
Yury V. Zaytsev

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]