| Index: ports/gambc/build.sh
|
| diff --git a/ports/gambc/build.sh b/ports/gambc/build.sh
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7e9bdbc03dfd2a73d3a61831e159972b7cfb63c4
|
| --- /dev/null
|
| +++ b/ports/gambc/build.sh
|
| @@ -0,0 +1,26 @@
|
| +#!/bin/bash
|
| +# Copyright (c) 2011 The Native Client Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +ConfigureStep() {
|
| + export BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_DIR}
|
| + export NACL_CONFIGURE_PATH=./configure
|
| +
|
| + if [ "${NACL_ARCH}" = "pnacl" ]; then
|
| + EXTRA_CONFIGURE_FLAGS=""
|
| + NACLPORTS_CFLAGS+=" -D___NOT_USE_LABEL_VALUES"
|
| + else
|
| + # Gambit compiling is extremely slow with this flag under LLVM.
|
| + EXTRA_CONFIGURE_FLAGS="--enable-single-host"
|
| + fi
|
| +
|
| + if [ "${NACL_GLIBC}" != "1" ]; then
|
| + export LIBS=" -lglibc-compat"
|
| + else
|
| + # Gambit decides to use POSIX function only if waitpid exists.
|
| + export ac_cv_func_waitpid=yes
|
| + fi
|
| +
|
| + DefaultConfigureStep --disable-debug ${EXTRA_CONFIGURE_FLAGS}
|
| +}
|
|
|