Howto Patch up missing crt0.o during cross compiling
Posted: Fri Oct 17, 2014 12:33 am
I trying to compile Zlib on Mac for ARM based linux system.
export cross=/opt/local/bin/arm-none-eabi-
CC="${cross}gcc" AR="${cross}ar r" RANLIB="${cross}ranlib"
./configure
make
Error:../../../arm-none-eabi/bin/ld: cannot find crt0.o: No such file or directory
collect2: error: ld returned 1 exit status
SOmeone says the need to copy crt0.o over. But how? where to copy from and to?
export cross=/opt/local/bin/arm-none-eabi-
CC="${cross}gcc" AR="${cross}ar r" RANLIB="${cross}ranlib"
./configure
make
Error:../../../arm-none-eabi/bin/ld: cannot find crt0.o: No such file or directory
collect2: error: ld returned 1 exit status
SOmeone says the need to copy crt0.o over. But how? where to copy from and to?