This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Gcc calls Id with unrecognized option '--as-needed'
- From: Otto Wyss <otto dot wyss at orpatec dot ch>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 05 Aug 2004 17:10:58 +0200
- Subject: Gcc calls Id with unrecognized option '--as-needed'
- Reply-to: otto dot wyss at orpatec dot ch
The configure of the wxWidgets package tests for gcc with a simple test
app but during this test ld stops with error unrecognized option
'--as-needed' (see log).
============================================
configure:9121: checking whether the C compiler (gcc ) works
configure:9137: gcc -o conftest conftest.c 1>&5
/usr/bin/ld: unrecognized option '--as-needed'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure: failed program was:
#line 9132 "configure"
#include "confdefs.h"
main(){return(0);}
============================================
Does anyone know why gcc calls ld with this option and how I could
correct it?
I use Debian/sarge with
gcc -dumpversion
3.3.4
ld -V
GNU ld version 2.14.90.0.7 20031029 Debian GNU/Linux
O. Wyss
--
See a huge pile of work at "http://wyodesktop.sourceforge.net/"