I’m trying to use Nuklear with sdl2.
I get this error with --release=fast:
$ rm -rf .zig-cache/ zig-out/ && zig build --release=fast
install
└─ install nk-sdl-example
└─ compile exe nk-sdl-example ReleaseFast native failure
error: warning(link): unexpected LLD stderr:
ld.lld: warning: .zig-cache/o/ed92cb6971b11603cbe3d0a2565bc25c/libnk_sdl_renderer_backend.a: archive member '/usr/lib/x86_64-linux-gnu/libSDL2.so' is neither ET
_REL nor LLVM bitcode
$ ls -l zig-out/bin/nk-sdl-example
-rwxrwxr-x 1 gianmaria gianmaria 1661592 feb 6 02:00 zig-out/bin/nk-sdl-example
Note that the executable is still built and it appears to work, and if I do again (forcing a rebuild by changing a comment)
$ zig build --release=fast
$ ls -l zig-out/bin/nk-sdl-example
-rwxrwxr-x 1 gianmaria gianmaria 1661592 feb 6 02:00 zig-out/bin/nk-sdl-example
there are no errors (that’s why I was doing rm -rf .zig-cache/ zig-out/ before), and the executable still works (and has the same size).
What does that mean? How to fix it?