FWGS / xash3d

DEPRECATED in favor of https://github.com/FWGS/xash3d-fwgs. Only bugfixes are accepted.
https://xash.su
GNU General Public License v3.0
549 stars 107 forks source link

How to make a static build? #393

Closed CrusoeDaWolf closed 5 years ago

CrusoeDaWolf commented 5 years ago

It seems like using -DXASH_STATIC doesn't make a static build of the engine. Launching HL gives me a missing library error (libxashmenu) and I kinda expected a binary larger than 2 megabytes.

nekonomicon commented 5 years ago

This option will create one big binary using code from launcher, engine and loader folders. Nothing more. Mainui will be as separate library anyway.

CrusoeDaWolf commented 5 years ago

Why exactly is MainUI serparate though? Seems like an odd decision for a 'static' build.

a1batross commented 5 years ago

gives me a missing library error

man LD_LIBRARY_PATH

Fully static builds are not supported anyway.

mittorn commented 5 years ago

static binary cannot load dynamic libraries. It useful only with dll loader. We do not have own elf loader xashds-android x86 binary built with this options:

make -f Makefile.linux XASH_STATIC=1 XASH_DLL_LOADER=1 XASH_DEDICATED=1