| Index: ports/libvpx/build.sh
|
| diff --git a/ports/libvpx/build.sh b/ports/libvpx/build.sh
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a396b2c50d6ba6f70073f336b6d8f525d23a2ddd
|
| --- /dev/null
|
| +++ b/ports/libvpx/build.sh
|
| @@ -0,0 +1,26 @@
|
| +# Copyright 2015 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.
|
| +
|
| +OS_JOBS=1
|
| +
|
| +if [[ ${NACL_LIBC} == newlib ]]; then
|
| + NACLPORTS_CXXFLAGS+=" -std=gnu++11"
|
| +fi
|
| +
|
| +if [[ ${NACL_ARCH} == arm && ${TOOLCHAIN} == glibc ]]; then
|
| + # Force -O2 rather then -O3 to work around arm gcc bug
|
| + EXTRA_CONFIGURE_ARGS="--enable-small"
|
| +fi
|
| +
|
| +SetOptFlags() {
|
| + # libvps sets it own optimisation flags
|
| + return
|
| +}
|
| +
|
| +ConfigureStep() {
|
| + SetupCrossEnvironment
|
| + LogExecute ${SRC_DIR}/configure --target=generic-gnu --cpu=le32 \
|
| + --disable-unit-tests --prefix=${PREFIX} \
|
| + --extra-cflags="${NACLPORTS_CPPFLAGS}" ${EXTRA_CONFIGURE_ARGS:-}
|
| +}
|
|
|