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

Marco van de Voort marcov at stack.nl
Wed Jul 24 12:22:18 CEST 2013


On Fri, Jul 19, 2013 at 08:05:13AM +0200, Mattias Gaertner wrote:
> You can grep for linklib directives in the sources.
> And you can use the ppudump tool on all .ppu files and grep for c_r.

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 )

The c_r/pthreads substitution, like the library substitution system it uses
(-XLA, XLO) operates on the list of static libs just before linking,
generating a new list.

IOW in the ppu, the names are the same as the linklib, and not necessarily
the same as passed to the linker.





More information about the Lazarus mailing list