Change the compilers to alias -pthread to -lpthread.
commit295c9c071316f3b80d04d39748c038615efebb10
authorSimon Schubert <corecode@dragonflybsd.org>
Tue, 17 Apr 2007 12:18:37 +0000 (17 12:18 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Tue, 17 Apr 2007 12:18:37 +0000 (17 12:18 +0000)
tree768dd0cb476fb0ed33b0ccd8ccec115b50ad81b7
parentbffded529253b92796aa00199c4ec4ddfdcc556a
Change the compilers to alias -pthread to -lpthread.

Now threaded programs do not get linked to libc_r anymore, but to the
proxy lib libpthread.  As soon as all programs and libraries are relinked
to use libpthread exclusively (and not libc_r.so anymore), threading libs
can be switched by changing the /usr/lib/libpthread.so.0 symlink.

Use the following command to find all packages still linking to libc_r:

find /usr/pkg/bin /usr/pkg/sbin /usr/pkg/lib /usr/pkg/libexec -type f \
  -exec sh -c '\
    objdump -p $0 2>/dev/null | grep -q "NEEDED.*libc_r\.so" || exit 0; \
    pkg_info -F -e $0' {} \; | sort | uniq
gnu/usr.bin/cc34/cc_prep/config/dragonfly-spec.h
gnu/usr.bin/cc41/cc_prep/config/dragonfly-spec.h