Zig 0.16 cross-compiling with external uClibc toolchain: sysroot/libc linking and ELF interpreter issues (opens in new tab)
Hello, zig 0.16 I want to build an app that uses a library which links against the libc provided by the arm-buildroot-linux-uclibcgnueabihf-4.9.4 toolchain. I can compile my code with Zig, but I’m having trouble linking to that library because it depends on the toolchain libc. When I build, either it links against my system libc or it fails to link against the toolchain libc. I tried using setLibCFile() but ldd reports: error: ld.lld: cannot open /lib/libc.so.1: No such file or directory erro...
Read the original article