Subject: pthread stubs solution for libX11
To: None <tech-pkg@netbsd.org, tech-x11@netbsd.org>
From: Blair Sadewitz <blair.sadewitz@gmail.com>
List: tech-x11
Date: 04/25/2007 19:04:13
------=_Part_2662_9848238.1177542253938
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

In case anyone wants to try this, I've attached a patch for x11/libX11
to use the libpthread-stubs package I commited to pkgsrc-wip with
libX11.  I haven't tested it extensively yet, but thusfar everything
seems OK.

The libpthread-stubs package is an adaptation of devel/pthread-stublib
with a pkg-config file, so that you could even use it with libxcb if
you wanted to.

Regards,

--Blair

------=_Part_2662_9848238.1177542253938
Content-Type: application/octet-stream; name="libX11.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="libX11.diff"

SW5kZXg6IE1ha2VmaWxlCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnNyb290L3BrZ3NyYy94MTEv
bGliWDExL01ha2VmaWxlLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjQKZGlmZiAtdSAtcjEuNCBN
YWtlZmlsZQotLS0gTWFrZWZpbGUJMyBBcHIgMjAwNyAyMDoyODozOCAtMDAwMAkxLjQKKysrIE1h
a2VmaWxlCTI1IEFwciAyMDA3IDIyOjU5OjI0IC0wMDAwCkBAIC0xNCw4ICsxNCw2IEBACiBQS0df
SU5TVEFMTEFUSU9OX1RZUEVTPQlvdmVyd3JpdGUgcGtndmlld3MKIFBLR19ERVNURElSX1NVUFBP
UlQ9CXVzZXItZGVzdGRpcgogCi1NQUtFX0pPQlNfU0FGRT0JCW5vCi0KIFVTRV9MSUJUT09MPQkJ
eWVzCiBHTlVfQ09ORklHVVJFPQkJeWVzCiBVU0VfVE9PTFMrPQkJZ21ha2UgcGtnLWNvbmZpZwpA
QCAtMjMsNiArMjEsOSBAQAogQ09ORklHVVJFX0FSR1Mr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