This is the mail archive of the gcc@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]

Re: Boostrap fails on i386-pc-solaris2.10 - libquadmath error


* Rainer Orth wrote on Wed, Nov 17, 2010 at 09:15:55PM CET:
> 
> * One cannot -lm to libquadmath_la_LIBADD since that gets passed to nm,
>   which doesn't know (and doesn't need to be run) -lm.

That's a bug in the rule using nm then, though.

>   Again, as in
>   libjava/Makefile.am, I've moved it to libquadmath_la_LDFLAGS instead.

Using *_LDFLAGS for -l flags is wrong though because it might mess up
the ordering of libraries, at least for static linking.  You might get
away with this here because -lm is probably added from some other bit as
well, but in general that is not a good idea.

Cheers,
Ralf


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