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


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

Re: ld on sparc-solaris: linkage order


On Wed, 12 Jul 2000, H . J . Lu wrote:
> On Wed, Jul 12, 2000 at 01:11:56PM +0200, Volker Boerchers wrote:
> > Hi,
> > 
> > we are having problems getting a multithreaded application to run on
> > sparc-solaris7 (gcc-2.95.2, ld version 2.10 (with BFD 2.10)).
> > 
> > we found in the sun docs
> > (http://docs.sun.com:80/ab2/coll.45.10/MTP/@Ab2PageView/14940?DwebQuery=thread&Ab2Lang=C&Ab2Enc=iso-8859-1),
> > that the linkage order of libc and libthread has to be -lpthread -lc.
> > 
> > So we are fixing now the link line in the makefiles to see if this helps.
> > 
> > The sunpro linker has an option `-mt' to ensure this order automatically.
> 
> If you use gcc, you can modify the specs file.

thank you for this hint. By looking into the file (for the first time...) 
i get a slight idea how it could be done. Is there a documentation of the
syntax of this file?

Wouldn't it be good to have an appropriate change in the spec file (or
whereever) _by default_ on solaris?

Regards,
  Volker
-- 
Volker Börchers, kidata AG, Königswinter, Germany


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