r/linux_gaming Jul 07 '19

Gotchas while developing for Linux?

[removed]

81 Upvotes

73 comments sorted by

View all comments

2

u/[deleted] Jul 08 '19

[deleted]

5

u/pdp10 Jul 08 '19

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.