OLD | NEW |
(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 } |
OLD | NEW |