gccxorgmesameson-build

Unable to build static lib of mesa (libGL.a)


Trying to build a static library of libGL. Looking at "meson configure", it states that static libraries are default. Still, I only end up with a libGL.so file. Is the any magic voodoo to get the static version to compile? Only answers I find online is for old version of mesa that still used the standard "./configure; make"


Solution

  • To compile libGL as a static library, change the line 161 inside src/glx/meson.build from shared_library to static_library.