[Lazarus] old problem on FreeBSD: ld cannot find -lc_r

Marco van de Voort marcov at stack.nl
Thu Jul 25 11:03:35 CEST 2013


On Thu, Jul 25, 2013 at 08:34:16AM +0200, Mattias Gaertner wrote:
> > Afaik this won't work fool proof. It will work if there is a {$linklib c_r},
> > but it is also possible that a {$linklib pthreads} was changed to c_r by
> >  -Xf.  (which is equal to -XLApthreads=c_r )
> 
> -Xf and -XL are both not mentioned in the compiler -h help.

No. -Xf is pretty much legacy (since FreeBSD4 is out of support 4 or 5 years
now), so it was removed to save space.

-XL is officially still beta. There is some description in the buildfaq, but
  that was never merged with the documentation
 
> > IOW in the ppu, the names are the same as the linklib, and not necessarily
> > the same as passed to the linker.
> 
> That means that either the user or the fpc.cfg passes some special
> parameters to the compiler, right?

configfile or direct parameter (via whatever means), yes, that's what it
sounds like.




More information about the Lazarus mailing list