Jump to content
OpenRCT2
Sign in to follow this  
legluondunet

Static build

Recommended Posts

A modern library included app packaging format is generally better than static linking, because it permits insertion of library patches post-release for compatibility with annoyingly stubborn systems.

Your best option is to use the AppPack build for this.  This one includes all it's libraries and has nice executable compression.  You can also prune the libraries when making this, for further compression.  There is a premade AppPack, but there is also a build script for it in the source code.

Another option is to use FlatPak, which is similar to AppPack but uses a system container, providing more insulation and security.   FlatPak also makes several premade run-times available with fixed library sets including the latest bugfix patches.   It's a very good option.  However, FlatPak requires a runtime and a special user-level package manager (supported by most major modern distros.) This makes it less portable.

There currently isn't a flatpak build script last I checked, but it's easy to add.   The FlatPak website has a guide, and I think I might have seen a prebuilt one on Flathub.

Simply put advantages quick and dirty:
FlatPak: System in place for runtime updates.
AppPack: Runs as a standard monolithic Elf binary, fully portable and able to run on any system without substantial library issues.

As a note, OpenRTC needs the following for FlatPak permissions:  Access to Window Manager functions, Access to OpenGL and X11 functions, Sound system Access. Full network access, Access to user directory in filesystem.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...