cvs commit: src/gnu/usr.bin/cc34/cc_prep/config dragonfly-spec.h src/gnu/usr.bin/cc41/cc_prep/config dragonfly-spec.h
Simon Schubert
corecode at crater.dragonflybsd.org
Tue Apr 17 05:20:21 PDT 2007
corecode 2007/04/17 05:18:37 PDT
DragonFly src repository
Modified files:
gnu/usr.bin/cc34/cc_prep/config dragonfly-spec.h
gnu/usr.bin/cc41/cc_prep/config dragonfly-spec.h
Log:
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
Revision Changes Path
1.13 +1 -1 src/gnu/usr.bin/cc34/cc_prep/config/dragonfly-spec.h
1.4 +1 -1 src/gnu/usr.bin/cc41/cc_prep/config/dragonfly-spec.h
http://www.dragonflybsd.org/cvsweb/src/gnu/usr.bin/cc34/cc_prep/config/dragonfly-spec.h.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/gnu/usr.bin/cc41/cc_prep/config/dragonfly-spec.h.diff?r1=1.3&r2=1.4&f=u
More information about the Commits
mailing list