Index: libraries/python/config.site |
diff --git a/libraries/python/config.site b/libraries/python/config.site |
index c273024063576bd1ef06efe7bc2bc5b0b122950a..75fda4e987d53b61b0d56056b3d4e79c3880b002 100644 |
--- a/libraries/python/config.site |
+++ b/libraries/python/config.site |
@@ -1,2 +1,10 @@ |
+# Python's configure can't detect these two options when cross |
+# compiling so we pre-seed it with the answers. |
ac_cv_file__dev_ptmx=no |
ac_cv_file__dev_ptc=no |
+ |
+# Force python's configure to think that _POSIX_THREADS is defined |
+# in unistd.h even though under newlib it is not. |
+# TODO(sbc): Remove this once newlib is fixed: |
+# https://code.google.com/p/nativeclient/issues/detail?id=3551 |
+ac_cv_pthread=yes |