| # 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. |
| |
| EXTRA_CONFIGURE_ARGS=" |
| --disable-music-flac |
| --disable-music-mp3 |
| " |
| |
| # sdl-config --libs includes -lppapi which cannot be linked |
| # with shared libraries, so for now we disable the shared build. |
| # In the future we could instead filter out this flag or remove |
| # it and force SDL2 programs to add it themselves. |
| EXTRA_CONFIGURE_ARGS+=" --disable-shared" |
| |
| ConfigureStep() { |
| SetupCrossEnvironment |
| export LIBS="-lvorbisfile -lvorbis -logg -lm" |
| ${SRC_DIR}/configure \ |
| --host=nacl \ |
| --prefix=${PREFIX} \ |
| --${NACL_OPTION}-mmx \ |
| --${NACL_OPTION}-sse \ |
| --${NACL_OPTION}-sse2 \ |
| --${NACL_OPTION}-asm \ |
| --with-x=no \ |
| $EXTRA_CONFIGURE_ARGS |
| |
| } |