Re: Static build of mc
- From: "Yury V. Zaytsev" <yury shurup com>
- To: Erdmut Pfeifer <e pfeifer science-computing de>
- Cc: mc gnome org, david leighweb com
- Subject: Re: Static build of mc
- Date: Mon, 12 Sep 2016 21:20:23 +0200 (CEST)
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 ld.so" for details ("ld.so" is the generic name of the dynamic
loader, the actual name on today's 64-bit boxes is typically
ld-linux-x86-64.so.2, 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]