Build Irrlicht against system libraries (namely libjpeg, libpng, libz and libbz2) instead of bundled libs.
- Group Reviewers
- R1485:8aa221622528: Irrlicht: build against system libraries
Rebuilt minetest against this version and played Minetest Game and MineClone2 for a few minutes.
Hard-coding the use of internal/vendored libraries in a header file and expecting packagers to create a patch to override this seems odious.
This ought to be configurable at build-time using a ./configure flag (or similar).
@ermo, if I understood their documentation correctly, it's supposed to use system libraries just if I define those "NO_IRR_USE_NON_SYSTEM..." flags, i.e. one could just add this defines through $CFLAGS. But unfortunately, to force Irrlicht to link against external libs you also have to patch the Makefile - remove linking against static libs and add necessary flags to linker manually (see my patch), in other case it will continue to build bundled libraries and statically compile them.
And they don't provide any configuration script - just a bare Makefile.