| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 # | 5 # |
| 6 | 6 |
| 7 # nacl-xaos.sh | 7 # nacl-xaos.sh |
| 8 # | 8 # |
| 9 # usage: nacl-xoas.sh | 9 # usage: nacl-xoas.sh |
| 10 # | 10 # |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 -Wl,--undefined=PPP_InitializeModule \ | 44 -Wl,--undefined=PPP_InitializeModule \ |
| 45 -Wl,--undefined=original_main" | 45 -Wl,--undefined=original_main" |
| 46 if [ ${NACL_ARCH} = "pnacl" ] ; then | 46 if [ ${NACL_ARCH} = "pnacl" ] ; then |
| 47 export CFLAGS="${CFLAGS} -O3" | 47 export CFLAGS="${CFLAGS} -O3" |
| 48 export LDFLAGS="${LDFLAGS} -O0 -static" | 48 export LDFLAGS="${LDFLAGS} -O0 -static" |
| 49 else | 49 else |
| 50 export CFLAGS="${CFLAGS} -O2" | 50 export CFLAGS="${CFLAGS} -O2" |
| 51 fi | 51 fi |
| 52 export AR=${NACLAR} | 52 export AR=${NACLAR} |
| 53 export RANLIB=${NACLRANLIB} | 53 export RANLIB=${NACLRANLIB} |
| 54 export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig | 54 export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig |
| 55 export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB} | 55 export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR} |
| 56 | 56 |
| 57 export LIBS="-L${NACL_SDK_USR_LIB} -lppapi -lpthread -lstdc++ -lm -lnosys" | 57 export LIBS="-L${NACLPORTS_LIBDIR} -lppapi -lpthread -lstdc++ -lm -lnosys" |
| 58 | 58 |
| 59 CONFIG_FLAGS="--with-png=no \ | 59 CONFIG_FLAGS="--with-png=no \ |
| 60 --with-long-double=no \ | 60 --with-long-double=no \ |
| 61 --host=nacl \ | 61 --host=nacl \ |
| 62 --with-x11-driver=no \ | 62 --with-x11-driver=no \ |
| 63 --with-sffe=no" | 63 --with-sffe=no" |
| 64 | 64 |
| 65 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} | 65 ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME} |
| 66 | 66 |
| 67 # xaos does not work with a build dir which is separate from the | 67 # xaos does not work with a build dir which is separate from the |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 DefaultBuildStep | 104 DefaultBuildStep |
| 105 if [ ${NACL_ARCH} = "pnacl" ] ; then | 105 if [ ${NACL_ARCH} = "pnacl" ] ; then |
| 106 DefaultTranslateStep ${PACKAGE_NAME} ${PACKAGE_NAME}-build/bin/xaos | 106 DefaultTranslateStep ${PACKAGE_NAME} ${PACKAGE_NAME}-build/bin/xaos |
| 107 fi | 107 fi |
| 108 CustomInstallStep | 108 CustomInstallStep |
| 109 DefaultCleanUpStep | 109 DefaultCleanUpStep |
| 110 } | 110 } |
| 111 | 111 |
| 112 CustomPackageInstall | 112 CustomPackageInstall |
| 113 exit 0 | 113 exit 0 |
| OLD | NEW |