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 BUILD_DIR=${WORK_DIR}/build-nacl-host |
| 10 |
| 11 ConfigureStep() { |
| 12 MakeDir ${BUILD_DIR} |
| 13 ChangeDir ${BUILD_DIR} |
| 14 # Reset CFLAGS and LDFLAGS when configuring the host |
| 15 # version of python since they hold values designed for |
| 16 # building for NaCl. Note that we are forcing 32 bits here so |
| 17 # our generated modules use Py_ssize_t of the correct size. |
| 18 export CC="gcc -m32" |
| 19 export CXX="g++ -m32" |
| 20 export LD="gcc -m32" |
| 21 LogExecute \ |
| 22 ${SRC_DIR}/configure --prefix=${NACL_HOST_PYROOT} |
| 23 } |
| 24 |
| 25 InstallStep() { |
| 26 make install |
| 27 } |
OLD | NEW |