Reuse $(CC) set in the makefiles. CC is set to 'gcc -pthread' if threads are enabled and the -pthread option is required to get linking to the threads library. --- Python-2.6.4/configure.in.old 2010-01-14 11:10:41 +0100 +++ Python-2.6.4/configure.in 2010-01-14 11:11:03 +0100 @@ -1771,7 +1771,7 @@ FreeBSD*) if [[ "`$CC -dM -E -