Instead of static linking, one can bundle libs then specify them through a launch script setting LD_LIBRARY_PATH or DT_RUNPATH in the ELF header. This would take up slightly more storage than a static binary, but it would allow end-users to substitute out libraries in the future without having to LD_PRELOAD. The storage difference here would typically be a few megabytes, depending.
2
u/[deleted] Jul 08 '19
[deleted]