4 ms·
Interesting the decision[1] of building against glibc instead of musl. Any reason for not using musl instead (and doing a static binary)? This would avoid the c
by kokada 2y ago
Interesting the decision[1] of building against glibc instead of musl. Any reason for not using musl instead (and doing a static binary)? This would avoid the compatibility issues e.g.: Alpine and Nix.
[1]: https://zed.dev/docs/linux https://zed.dev/docs/linux
- deleted 2y ago[deleted]
- oynqr 2y agoCan you even do GPU acceleration without dynamic libraries on Linux?
- kokada 2y agoThis is a good question. It is not like the current `zed` binary is linked to anything that is needed for 3D rendering: $ ldd zed.app/bin/zed linux-vdso.so.1 (0x00007ffed63f6000) libgcc_s.so.1 => /nix/store/bihw7p4zdqwyxmnc8h67c06lnjkvdan8-xgcc-13.3.0-libgcc/lib/libgcc_s.so.1 (0x00007fb5def3c000) libpthread.so.0 => /nix/store/m71p7f0nymb19yn1dascklyya2i96jfw-glibc-2.39-52/lib/libpthread.so.0 (0x00007fb5def37000) libdl.so.2 => /nix/store/m71p7f0nymb19yn1dascklyya2i96jfw-glibc-2.39-52/lib/libdl.so.2 (0x00007fb5def32000) libc.so.6 => /nix/store/m71p7f0nymb19yn1dascklyya2i96jfw-glibc-2.39-52/lib/libc.so.6 (0x00007fb5ded3b000) /lib64/ld-linux-x86-64.so.2 => /nix/store/m71p7f0nymb19yn1dascklyya2i96jfw-glibc-2.39-52/lib64/ld-linux-x86-64.so.2 (0x00007fb5df05d000) However it may well be that this is dlopen during runtime, and for it to work correctly you need to use the same libc as the one in the system.