How to determine which pthread, was: Re: last libc_r dependenciesleft on current

Kris Kennaway kris at obsecurity.org
Tue Feb 10 17:23:15 PST 2004


On Tue, Feb 10, 2004 at 11:36:25PM +0100, Marco van de Voort wrote:
> 
> (Oops, sorry Fritz, now to the list :-)
> 
> > after removing libc_r.so and rebuilding my ports (gettext port upgrade)
> > there here are three ports left with "hardcoded" libc_r dependency and
> > therefore failed to build:
> > 
> > x11-toolkits/qt32, lang/gcc34 (not so important) and java/jdk13
> 
> Btw,
> 
> lang/fpc-devel (and to a lesser degree lang/fpc) are not libc_r dependant
> themselves, but generate libc_r programs when language threading is used.
> 
> I'll fix this in the coming weeks, but rather like to do this runtime. 
> 
> How can I detect (in a non C/libc program, iow without using headers or
> libraries, so in the general FreeBSD environment), whether I should pass
> -lc_r to the linker or -lc -lpthread ? 
> (sysctl or uname based solutions come to mind)

Look at how bsd.port.mk decides.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040210/efbda566/attachment.bin


More information about the freebsd-ports mailing list