#Segfault when calling glfwInit() on Wayland
18 messages · Page 1 of 1 (latest)
no it works without -static
looks like it's linking the wrong glibc or something like that
thats something that can happen? interesting
how would I go about investigating that further?
why are you setting -static manually?
how am I supposed to do it then?
you already set BUILD_SHARED_LIBS and GLFW_BUILD_SHARED_LIBS to off
maybe I'm misunderstanding but, removing the flag would cause it to not link to libc and other standard libraries statically, thus I would also need to provide those with the application, on Linux that doesn't matter that much, but for a Windows build, that would be a little bit annoying
I want to have a single executable with everything included, no other files alongside it
is statically linking everything not the way to do that, or is it otherwise a bad idea? if so, why?
if you want to static link the runtime then you want -static-libgcc -static-libstdc++
but providing dlls next your you executable is usually nto an issue
its not, I just don't want to haha
@burnt bough has reached level 1. GG!
so I only need these and not -static to achieve the same effect?
I think so
ah ok, then I'll just do that, thanks