I m an 18 year old developer How do I become one of the best programmers ever? ycombinator.com - get the latest breaking news, showbiz & celebrity photos, sport news & rumours, viral videos and top stories from ycombinator.com Daily Mail and Mail on Sunday newspapers.
Without building a package from scratch, the terms “derivation” and “closure” had very obscure meanings to me, but Eelco Dolstra’s (the creator of Nix and NixOS) PhD thesis dispelled my confusion. It…
.github
Change the dynamic loader ( ELF interpreter ) of executables:
$ patchelf set-interpreter /lib/my-ld-linux.so.2 my-program
Change the
$ patchelf set-rpath /opt/my-libs/lib:/other-libs my-program
Shrink the
$ patchelf shrink-rpath my-program
RPATH all directories that do not contain a
library referenced by
DT NEEDED fields of the executable or library.
For instance, if an executable references one library
libfoo.so, has
an RPATH
libfoo.so can only be found
in
/foo/lib, then the new
RPATH will be
In addition, the
RPATH
/foo/lib reference instead of the
/tmp entry. To accomplish
that, use:
$ patchelf shrink-rpath allowed-rpath-prefixes /usr/lib:/foo/lib my-program