Link glfw statically. Couldn't figure out how to link the system glfw statically, but managed to do it from source. I think the library that is installed by the libglfw-dev apt package is only the dynamically linked library and therefore it can't be linked statically. Baking it in like this seems to work.
This is the output of ldd studio after the changes:
Link glfw statically. Couldn't figure out how to link the system glfw statically, but managed to do it from source. I think the library that is installed by the
libglfw-dev
apt package is only the dynamically linked library and therefore it can't be linked statically. Baking it in like this seems to work.This is the output of
ldd studio
after the changes:Still need to test on mac if this builds and runs.
Also fixed a segfault on linux which is caused by glfw close being called before bgfx::shutdown.