bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20136: 25.0.50; [PATCH] Fix broken libpthread detection


From: Paul Eggert
Subject: bug#20136: 25.0.50; [PATCH] Fix broken libpthread detection
Date: Thu, 19 Mar 2015 14:37:32 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Thanks for the bug report and suggestion. However, it's probably better to keep Emacs's pthread configuration simple. We're already bypassing both of Gnulib's pthread configuration strategies, so it's not too much of a stretch to also bypass the strategy in the Autoconf archive. All these strategies are hacky and are showing signs of age (Sequent! wow! it's been a while) and I'm sort of hoping that FreeBSD will change its default to be pthread-friendly instead of pthread-hostile so that Emacs and other apps can stop worrying about this gorp. So I installed the attached patch instead, which I tested on Fedora 21 x86-64 and on FreeBSD 9.1 x86-64.

it would be nice (I imagine) to use -pthread instead
of -lpthread if possible.


What does -pthread do that the current approach doesn't?

More generally, if we're worried only about Emacs's runtime behavior, is there anything wrong with compiling with the equivalent of -D_THREAD_SAFE -lpthread?

Attachment: 0001-Better-port-of-pthread-usage-to-FreeBSD.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]