宿主是rhel 5.1,参考手册是《Linux 彻底定制指南》[翻译:金步国]
lfs:/mnt/lfs/sources/gcc-build$../gcc-3.4.3/configure --prefix=/tools \
> --libexecdir=/tools/lib --with-local-prefix=/tools \
> --disable-nls --enable-shared --enable-languages=c
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
*** This configuration is not supported in the following subdirectories:
target-libstdc++-v3 target-libf2c target-libffi target-boehm-gc target-zlib target-libjava zlib fastjar target-libobjc
(Any other directories should still work fine.)
/tools/bin/ld: unrecognized option '--hash-style=gnu'
/tools/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.