/ / static linking question: is it possible to make a statically linked X11 application? Every time I've used a library that uses X11, it has linked to it dynamically or with dlopen, which makes it not possible to use musl (afaik, please educate me if this is not the case).

Follow

/usr/lib/libX11.so: undefined reference to `dlopen@GLIBC_2.2.5'

X11 seems *really* married to glibc, damn.

@neon re: "X11 seems really married to glibc" — it's most definitely not.

X11 the protocol itself does not care (nor does the overall "X window system") about what libraries you use.

libX11, aka Xlib, may care, but I don't think it does.

/usr/lib/libX11.so, your system's build of Xlib as a shared library linked against glibc, of course does. Precisely because it's your system's build of Xlib as a shared library linked against glibc.

Sign in to participate in the conversation
Neon/Mastodon

@neon's personal instance.