OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 OS_JOBS=1 |
| 6 |
| 7 if [[ ${NACL_LIBC} == newlib ]]; then |
| 8 NACLPORTS_CXXFLAGS+=" -std=gnu++11" |
| 9 fi |
| 10 |
| 11 if [[ ${NACL_ARCH} == arm && ${TOOLCHAIN} == glibc ]]; then |
| 12 # Force -O2 rather then -O3 to work around arm gcc bug |
| 13 EXTRA_CONFIGURE_ARGS="--enable-small" |
| 14 fi |
| 15 |
| 16 SetOptFlags() { |
| 17 # libvps sets it own optimisation flags |
| 18 return |
| 19 } |
| 20 |
| 21 ConfigureStep() { |
| 22 SetupCrossEnvironment |
| 23 LogExecute ${SRC_DIR}/configure --target=generic-gnu --cpu=le32 \ |
| 24 --disable-unit-tests --prefix=${PREFIX} \ |
| 25 --extra-cflags="${NACLPORTS_CPPFLAGS}" ${EXTRA_CONFIGURE_ARGS:-} |
| 26 } |
OLD | NEW |