On Wed, 24 Jan 2001, Alfred Perlstein wrote:
> * Daniel M. Eischen <[EMAIL PROTECTED]> [010124 05:26] wrote:
> > As discussed a few days ago, I've just committed the changes to libc
> > and libc_r to allow them to be linked together via -lc_r. If you're
> > running -current and have any threaded apps built using libc_r.so.5,
> > you'll need to rebuild them without the -pthread option using -lc_r.
> >
> > For porters, the __FreeBSD_version has been bumped to 500016 to
> > reflect the above change.
>
> This is ambiguous, can you provide old/new examples of how to
> compile/link a single C source file?
What's not clear ;-) Use -lc_r instead of -pthread.
gcc -Wall -o foo foo.c -lc_r
The old way was:
gcc -Wall -D_THREAD_SAFE -o foo foo.c -pthread
Obviously -Wall isn't necessary, but it should be mandatory :-)
--
Dan Eischen
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message
- HEADS UP: libc/libc_r changes require rebuild of threade... Daniel M. Eischen
- Re: HEADS UP: libc/libc_r changes require rebuild o... Maxim Sobolev
- Re: HEADS UP: libc/libc_r changes require rebui... Jason Evans
- Re: HEADS UP: libc/libc_r changes require rebui... Daniel Eischen
- Re: HEADS UP: libc/libc_r changes require r... Maxim Sobolev
- Re: HEADS UP: libc/libc_r changes require rebuild o... Alfred Perlstein
- Re: HEADS UP: libc/libc_r changes require rebui... Daniel Eischen
- Re: HEADS UP: libc/libc_r changes require r... Jordan Hubbard
- Re: HEADS UP: libc/libc_r changes requi... Daniel Eischen
- Re: HEADS UP: libc/libc_r changes ... Craig Hawco
- Re: HEADS UP: libc/libc_r chan... Garrett Rooney
- Re: HEADS UP: libc/libc_r ... Craig Hawco
- Re: HEADS UP: libc/libc_r changes require r... Dan Nelson
- Re: HEADS UP: libc/libc_r changes requi... Alfred Perlstein
- Re: HEADS UP: libc/libc_r changes requi... Maxim Sobolev
- Re: HEADS UP: libc/libc_r changes ... Dan Nelson
- Re: HEADS UP: libc/libc_r chan... Maxim Sobolev
