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

Side by Side 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, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/bin/bash
2 # Copyright (c) 2013 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 # Use the same patch here as for the destination tree. This allows us to use
7 # the same tree for both, although some care should be taken to note that our
8 # DYNLOAD will be different between the two builds.
9 PATCH_FILE=../../python_static/nacl.patch
10 BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}/build-nacl-host
11
12 ConfigureStep() {
13 MakeDir ${BUILD_DIR}
14 ChangeDir ${BUILD_DIR}
15 # Reset CFLAGS and LDFLAGS when configuring the host
16 # version of python since they hold values designed for
17 # building for NaCl. Note that we are forcing 32 bits here so
18 # our generated modules use Py_ssize_t of the correct size.
19 export CC="gcc -m32"
20 export CXX="g++ -m32"
21 export LD="gcc -m32"
22 LogExecute \
23 ../configure --prefix=${NACL_HOST_PYROOT}
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698