|
楼主 |
发表于 2005-5-6 12:17:52
|
显示全部楼层
我搞定了^^
原来在第一次编译GCC的时候要修改gcc/config/arm/t-linux这个文件
参考资料---------------------------------
The -Dinhibit_libc hack
Upon installing a successful build of gcc, some headers will get put in the target's include directory. However, if you are building a (cross) compiler for the very first time, or with a different set of paths, it won't have these headers to hand. For the first time you build a gcc then, you can follow through these steps to fix the problem:
Edit gcc/config/arm/t-linux
and add
-Dinhibit_libc and -D__gthr_posix_h
to:
TARGET_LIBGCC2_CFLAGS.
That is, change the line that looks like:
TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fPIC
to:
TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fPIC -Dinhibit_libc -D__gthr_posix_h.
Re-run configure, but supplying the extra parameter --disable-threads.
[摘自 http://www.aleph1.co.uk] |
|