Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: libraries/python/config.site

Issue 18112024: Fix python to build with newlib. (Closed) Base URL: https://naclports.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | libraries/python/nacl.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | libraries/python/nacl.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698