| OLD | NEW |
| 1 # Copyright 2015 The Native Client Authors. All rights reserved. | 1 # Copyright 2015 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 HOST_BUILD_DIR=${WORK_DIR}/build_host | 5 HOST_BUILD_DIR=${WORK_DIR}/build_host |
| 6 HOST_INSTALL_DIR=${WORK_DIR}/install_host | 6 HOST_INSTALL_DIR=${WORK_DIR}/install_host |
| 7 | 7 |
| 8 export ac_cv_func_getrlimit=no | 8 export ac_cv_func_getrlimit=no |
| 9 export EXTRA_AM_CPPFLAGS="-Dmain=nacl_main" | 9 |
| 10 export EXTRA_LIBS="${NACL_CLI_MAIN_LIB} -lppapi_simple \ | 10 EnableCliMain |
| 11 -lnacl_io -lppapi -l${NACL_CXX_LIB}" | |
| 12 | 11 |
| 13 BuildHostBinutils() { | 12 BuildHostBinutils() { |
| 14 MakeDir ${HOST_BUILD_DIR} | 13 MakeDir ${HOST_BUILD_DIR} |
| 15 ChangeDir ${HOST_BUILD_DIR} | 14 ChangeDir ${HOST_BUILD_DIR} |
| 16 CC="gcc" EXTRA_LIBS="" EXTRA_AM_CPPFLAGS="" \ | 15 LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR} \ |
| 17 LogExecute ${SRC_DIR}/configure --prefix=${HOST_INSTALL_DIR} \ | |
| 18 --target=avr \ | 16 --target=avr \ |
| 19 --disable-nls | 17 --disable-nls |
| 20 EXTRA_LIBS="" EXTRA_AM_CPPFLAGS="" LogExecute make | 18 LogExecute make |
| 21 EXTRA_LIBS="" EXTRA_AM_CPPFLAGS="" LogExecute make install | 19 LogExecute make install |
| 22 } | 20 } |
| 23 | 21 |
| 24 ConfigureStep() { | 22 ConfigureStep() { |
| 25 ChangeDir ${SRC_DIR} | |
| 26 BuildHostBinutils | 23 BuildHostBinutils |
| 24 |
| 27 export PATH="${HOST_INSTALL_DIR}/bin:${PATH}" | 25 export PATH="${HOST_INSTALL_DIR}/bin:${PATH}" |
| 28 ChangeDir ${BUILD_DIR} | 26 ChangeDir ${BUILD_DIR} |
| 29 EXTRA_CONFIGURE_ARGS="\ | 27 EXTRA_CONFIGURE_ARGS="\ |
| 30 --target=avr \ | 28 --target=avr \ |
| 31 --disable-nls \ | 29 --disable-nls \ |
| 32 --disable-werror \ | 30 --disable-werror \ |
| 33 --enable-deterministic-archives \ | 31 --enable-deterministic-archives \ |
| 34 --without-zlib" | 32 --without-zlib" |
| 35 | 33 |
| 36 DefaultConfigureStep | 34 DefaultConfigureStep |
| 37 } | 35 } |
| OLD | NEW |