OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 # Copyright (c) 2011 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 ConfigureStep() { |
| 7 export BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR} |
| 8 export NACL_CONFIGURE_PATH=./configure |
| 9 |
| 10 if [ "${NACL_ARCH}" = "pnacl" ]; then |
| 11 EXTRA_CONFIGURE_FLAGS="" |
| 12 NACLPORTS_CFLAGS+=" -D___NOT_USE_LABEL_VALUES" |
| 13 else |
| 14 # Gambit compiling is extremely slow with this flag under LLVM. |
| 15 EXTRA_CONFIGURE_FLAGS="--enable-single-host" |
| 16 fi |
| 17 |
| 18 if [ "${NACL_GLIBC}" != "1" ]; then |
| 19 export LIBS=" -lglibc-compat" |
| 20 else |
| 21 # Gambit decides to use POSIX function only if waitpid exists. |
| 22 export ac_cv_func_waitpid=yes |
| 23 fi |
| 24 |
| 25 DefaultConfigureStep --disable-debug ${EXTRA_CONFIGURE_FLAGS} |
| 26 } |
OLD | NEW |