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

Unified Diff: libraries/python/nacl-python.sh

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 | « libraries/python/nacl.patch ('k') | libraries/python/pkg_info » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libraries/python/nacl-python.sh
diff --git a/libraries/python/nacl-python.sh b/libraries/python/nacl-python.sh
index 09ebb4a5b573edc9b9482ef3f524d635bd7fe809..302fe523927283c23226f6ccf215834f948a5cbd 100755
--- a/libraries/python/nacl-python.sh
+++ b/libraries/python/nacl-python.sh
@@ -10,15 +10,13 @@ EXECUTABLES=python.nexe
# Currently this package only builds on linux.
# The build relies on certain host binaries and pythong's configure
# requires us to sett --build= as well as --host=.
-EXTRA_CONFIGURE_ARGS="--disable-ipv6 --with-suffix=.nexe --build=x86_64-linux-gnu"
-export MAKEFLAGS="PGEN=../build-nacl-host/Parser/pgen"
HERE=$(cd "$(dirname "$BASH_SOURCE")" ; pwd)
BuildHostPython() {
ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}
MakeDir build-nacl-host
ChangeDir build-nacl-host
- LogExecute ../configure
+ CFLAGS="" LDFLAGS="" LogExecute ../configure
Mark Seaborn 2013/07/16 15:40:12 Can you comment setting CFLAGS="" LDFLAGS="", plea
Sam Clegg 2013/07/16 16:19:16 Done.
LogExecute make -j${OS_JOBS} python Parser/pgen
}
@@ -28,7 +26,12 @@ CustomConfigureStep() {
# We pre-seed configure with certain results that it cannot determine
# since we are doing a cross compile. The $CONFIG_SITE file is sourced
# by configure early on.
+ EXTRA_CONFIGURE_ARGS+=" --disable-ipv6"
Mark Seaborn 2013/07/16 15:40:12 Should this be EXTRA_CONFIGURE_ARGS="--disable-ipv
Sam Clegg 2013/07/16 16:19:16 Done.
+ EXTRA_CONFIGURE_ARGS+=" --with-suffix=.nexe"
+ EXTRA_CONFIGURE_ARGS+=" --build=x86_64-linux-gnu"
+ export MAKEFLAGS="PGEN=../build-nacl-host/Parser/pgen"
export CONFIG_SITE=${HERE}/config.site
+ export LIBS="-lc -lnosys"
DefaultConfigureStep
}
« no previous file with comments | « libraries/python/nacl.patch ('k') | libraries/python/pkg_info » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698