From #gentoo-python: <floppym> [Arfrever]: Regarding bug 630578, I wonder if a more general solution is needed or if we should just fix ebuilds needing "-pthread" as they pop up. Thoughts? <willikins> floppym: https://bugs.gentoo.org/630578 "=dev-python/cryptography-2.0.3 is underlinking against pthread on powerpc64 : cryptography-2.0.3-python2_7/lib/cryptography/hazmat/bindings/_openssl.so: undefined symbol: pthread_atfork"; Gentoo Linux, Current packages; CONF; slyfox:python <[Arfrever]> floppym: I would think that it is a bug in distutils-r1.eclass :) . <floppym> [Arfrever]: It's a bug that we export CC? <floppym> Unfortunately, the cpython configure script automagically appends -pthread to CC and saves that in sysconfig. <floppym> Exporting the CC envvar overrides that in distutils.sysconfig. <floppym> So this seems like a bug that anyone might run into if they set CC. <[Arfrever]> floppym: https://sourceforge.net/p/gentoo-progress/code/HEAD/tree/eclass/python.eclass#l1382 <floppym> Ah, I see. <floppym> Thanks for that. <[Arfrever]> floppym: https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/distutils-r1.eclass#n642 <[Arfrever]> floppym: So I think that values of CC and CXX in distutils-r1.eclass should be improved. <[Arfrever]> floppym: (And LDSHARED + LDCXXSHARED)
7 years later, I'm not aware of any good reason to do this.