I apologize if this is a simple question, but I can't seem to figure it out; I ported Newlib to my OS following the guide on the wiki, and am trying to compile a file with i686-elf-gcc. This is the command I'm compiling with:
Code: Select all
./i686-toolchain/bin/i686-elf-gcc -I$SYSROOT/usr/include -L$SYSROOT/usr/lib -lc -lgcc $SYSROOT/usr/lib/crt0.o test.c -o test.elf
$SYSROOT/usr/lib/ctr0.o exists, as you'd expect. It doesn't seem to have any trouble finding $SYSROOT/usr/lib/libc.a, which as you can see I'm linking against.
Am I missing something simple? Thanks!