现在问题是我每次用arm-linux-gcc编译的时候
都会链glibc那个libc.so.6,而不是去链uclibc那个libc.so.0
导致到了板上运行会出现:
libc.so.6: aborted attempt to load ./program
如果我加了 -L参数强制指定lib目录,那就会出现编译错误
libtool: link: warning: `-version-info' is ignored for programs
/usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/lib/be/crt1.o: In function `_start':
../sysdeps/arm/elf/start.S:74: undefined reference to `__libc_start_main'
../sysdeps/arm/elf/start.S:77: undefined reference to `__libc_csu_fini'
../sysdeps/arm/elf/start.S:77: undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status