[issue21461] Recognize -pthread

Thomas Klausner report at bugs.python.org
Fri Dec 10 13:13:59 EST 2021


Thomas Klausner <tk at giga.or.at> added the comment:

gcc supports this flag. According to the man page:

This option consistently for both compilation and linking.  This option is supported on GNU/Linux targets, most other Unix derivatives, and also on x86 Cygwin and MinGW targets.

On NetBSD, using -pthread is the recommended method to enable thread support.

clang on NetBSD also supports this flag. I don't have access to clang on other systems.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue21461>
_______________________________________


More information about the Python-bugs-list mailing list