This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Gcc calls Id with unrecognized option '--as-needed'


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/";


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]