------- Comment #21 from Ralf dot Wildenhues at gmx dot de 2008-07-02 16:46 ------- Subject: Re: 4.3.1 failed to compile gcse.c file.
* imam dot toufique at intel dot com wrote on Wed, Jul 02, 2008 at 06:17:59PM CEST: > well... when libstdc and other shared libs are built, are they all built > position independent? Yes. > the whole idea here to make sure that we must build > position independent libstdc.so and other shared libs. But you need not take care of that. It's done without you passing -fPIC. The build machinery will do that for those objects that end up in shared libraries. > Moreover, I have tested with the -fPIC options in 4.3.2 pre-release and the > build works OK. That doesn't make it recommended practice. > also, I am getting an error from 'ld' that it can't find symbol '-lc' . I am > not sure if this gcc related or binutils related. any ideas? Please see > comment #18 for more info. I assume that is an independent issue. But still you should first try to build without -fPIC. Cheers, Ralf -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36622