18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-27 21:45:16 +01:00
Files
maszyna/editor
jerrrrycho 2ebb10b3b2 build(linux): leave libcurl and its TLS stack out of the bundled libraries (#439)
* build(linux): leave libcurl and its TLS stack out of the bundled libraries (refs #320)

* fix(editor): libcurl is loaded at run time, so the game starts without it on Linux

The game was linked with libcurl, so with libcurl left out of the bundle it
needed the system's libcurl.so.4 to start, although only the editor's
downloads use it. Now only the headers are used at build time, and the editor
opens the system's libcurl with dlopen() when it first needs it: libcurl.so.4,
libcurl-gnutls.so.4, then libcurl.so. It looks up the eight functions it
calls and checks each one.

Without libcurl, or with one missing a function, the game runs as usual and
only the editor's downloads are off, as in a build without libcurl; one log
line says why. A libcurl older than the headers (before 7.85.0) gets the
protocols as bit masks. Windows is unchanged: the editor uses WinHTTP there.
2026-11-26 22:29:27 +01:00
..