error while configuring gcc-3.3.3 (pass1)
i am having trouble running configure while building gcc-3.3.3 (pass1). The command i have used is
../gcc-3.3.3/configure --prefix=/tools \
--disable-nls --enable-shared \
the error response i am getting is :
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /mnt/lfs/untar/gcc-build using "mt-frag"
/tools/bin/ld: unrecognized option '--as-needed'
/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.
my system is a p4, running fedora 2 as the host OS. gcc as well as ld are being recognised at the command prompt.
if anyone can figure out whats going wrong it wd be gr8. thanks in advance.