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

Unified Diff: ports/python/build.sh

Issue 1417223003: Switch from using 'nacl_main' to 'main' entry point (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 2 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
Index: ports/python/build.sh
diff --git a/ports/python/build.sh b/ports/python/build.sh
index ef0df31e8c84eb01ad6017f135a762ecfff01533..54fbc8a2a959dde58191ba2953b06ab7ffc138fb 100644
--- a/ports/python/build.sh
+++ b/ports/python/build.sh
@@ -4,8 +4,6 @@
EXECUTABLES=python${NACL_EXEEXT}
-NACLPORTS_CPPFLAGS+=" -Dmain=nacl_main"
-
# This build relies on certain host binaries and python's configure
# requires us to set --build= as well as --host=.
HOST_BUILD_DIR=${WORK_DIR}/build_host
@@ -38,13 +36,13 @@ ConfigureStep() {
EXTRA_CONFIGURE_ARGS+=" --with-pydebug"
fi
NACLPORTS_LIBS+=" -ltermcap"
- NACLPORTS_LIBS+=" ${NACL_CLI_MAIN_LIB}"
if [ "${NACL_LIBC}" = "newlib" ]; then
# When python builds with wait3/wait4 support it also expects struct rusage
# to have certain fields and newlib lacks.
export ac_cv_func_wait3=no
export ac_cv_func_wait4=no
fi
+ EnableCliMain
EnableGlibcCompat
DefaultConfigureStep
if [ "${NACL_LIBC}" = "newlib" ]; then

Powered by Google App Engine
This is Rietveld 408576698