This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Re: configure: error: compiler support for __thread is required






Firstly, apologies for the Bloatus croaks mailer...

Jean-Christophe Dubois wrote:
> Hello Dan,
>
> OK, I tried and it went a lot farther but fails later because it can't
> find libgcc_eh. Any insight is welcome. Here is the output.

<snip>
>
/vobs/target_tools/sparc-unknown-solaris-gnu/powerpc-7400-linux-gnu/gcc-3.4.1-glibc-2.3.3
/lib/gcc/powerpc-7400-linux-gnu/3.4.1
/../../../../powerpc-7400-linux-gnu/bin/
> ld: cannot find -lgcc_eh
> collect2: ld returned 1 exit status

-lgcc_eh is not needed if you built a static gcc, libgcc_eh.a is only
created when you build a shared gcc.
When built static, all _eh symbols are included in libgcc.a

Simple fix is to remove -lgcc_eh from the link...
ie: edit Makeconfig
change

static-gnulib := -lgcc -lgcc_eh

to

static-gnulib := -lgcc

HTH
 Regards
Ryan


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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