I’m trying to cross compile software for my omnia, however, I’m struggling to do so. I set up the toolchain like described in https://wiki.openwrt.org/doc/devel/crosscompile. I use the openwrt git repository. The software in question is snapraid. The build machine is a 64bit ubuntu 16.04 vm.
Configuration is done using
./configure --build=x86_64-unkown-linux-gnu --host=arm-openwrt-linux
and compilation is done using
make CC=arm-openwrt-linux-gcc LD=arm-openwrt-linux-ld
However, the result is not runnable on my omnia:
-ash: /.snapraid: not found
root@turris:~# ldd ./snapraid
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6f3f000)
libc.so => /lib/ld-musl-arm.so.1 (0x7f629000)
I suppose that’s because I’m doing something wrong during compilation since omnia does not provide a
/lib/ld-musl.arm.so.1 but a
How do I adjust compilation to use the later lib? Is there any howto how to compile software for my omnia?
Thanks for help.