Add a proxy libpthread.
authorSimon Schubert <corecode@dragonflybsd.org>
Tue, 17 Apr 2007 12:34:07 +0000 (12:34 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Tue, 17 Apr 2007 12:34:07 +0000 (12:34 +0000)
commit4491bca1140e4afed01b04afd143bce44f6b475f
tree2c9e818582ab48843dadf0d171957127ef826aee
parent295c9c071316f3b80d04d39748c038615efebb10
Add a proxy libpthread.

In short, it works like this:  ld uses libpthread.so when linking.  There
the SONAME is set to libpthread.so.0.  This however is a symlink (or maybe
varsymlink) to one of the threading libs.  Voila, threading libs can be
switched at execution time and we won't get breakage because of two different
threading libs being used in the same binary.

Idea-by: joerg and me.
lib/Makefile
lib/libpthread/Makefile [new file with mode: 0644]
lib/libpthread/README [new file with mode: 0644]
lib/libpthread/dummy.c [new file with mode: 0644]