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

Unified Diff: ports/python_modules/python_host/build.sh

Issue 138913004: Build system for statically-linked Python. (Closed) Base URL: https://naclports.googlecode.com/svn/trunk/src
Patch Set: Responding to comments Created 6 years, 11 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_modules/python_host/build.sh
===================================================================
new file mode 100644
--- /dev/null
+++ b/ports/python_modules/python_host/build.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+# Copyright (c) 2013 The Native Client Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Use the same patch here as for the destination tree. This allows us to use
+# the same tree for both, although some care should be taken to note that our
+# DYNLOAD will be different between the two builds.
+PATCH_FILE=../../python_static/nacl.patch
+BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/build-nacl-host
+
+ConfigureStep() {
+ MakeDir ${BUILD_DIR}
+ ChangeDir ${BUILD_DIR}
+ # Reset CFLAGS and LDFLAGS when configuring the host
+ # version of python since they hold values designed for
+ # building for NaCl. Note that we are forcing 32 bits here so
+ # our generated modules use Py_ssize_t of the correct size.
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export LD="gcc -m32"
+ LogExecute \
+ ../configure --prefix=${NACL_HOST_PYROOT}
+}

Powered by Google App Engine
This is Rietveld 408576698