我试图在 OpenELEC 编译期间引导 GCC。我需要libatomic
为目标系统添加以便编译一些包。
当我尝试libatomic
为目标系统添加时,出现编译错误:
/home/mathieu/tmp/OpenELEC.tv/build.OpenELEC-ci20.mips-8.0-devel/toolchain/mipsel-openelec-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/home/mathieu/tmp/OpenELEC.tv/build.OpenELEC-ci20.mips-8.0-devel/toolchain/mipsel-openelec-linux-gnu/bin/ld: cannot find -lc
/home/mathieu/tmp/OpenELEC.tv/build.OpenELEC-ci20.mips-8.0-devel/toolchain/mipsel-openelec-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
使用以下package.mk
文件:
如果那件事我的目标是 MIPS 系统,特别是Creator CI20:
我不清楚 OpenELEC 构建系统,但似乎主机编译器和目标编译器是同时构建的,而我需要在两者之间构建binutils: