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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux