| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 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 | 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 source pkg_info | |
| 7 source ../../build_tools/common.sh | |
| 8 | 6 |
| 9 if [ "${NACL_GLIBC}" != "1" ]; then | 7 if [ "${NACL_GLIBC}" != "1" ]; then |
| 10 NACLPORTS_CFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" | 8 NACLPORTS_CFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" |
| 11 NACLPORTS_CFLAGS+=" -DBYTE_ORDER=LITTLE_ENDIAN" | 9 NACLPORTS_CFLAGS+=" -DBYTE_ORDER=LITTLE_ENDIAN" |
| 12 NACLPORTS_CXXFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" | 10 NACLPORTS_CXXFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" |
| 13 NACLPORTS_CXXFLAGS+=" -DBYTE_ORDER=LITTLE_ENDIAN" | 11 NACLPORTS_CXXFLAGS+=" -DBYTE_ORDER=LITTLE_ENDIAN" |
| 14 export LIBS="-lnacl_io -lglibc-compat" | 12 export LIBS="-lnacl_io -lglibc-compat" |
| 15 fi | 13 fi |
| 16 | 14 |
| 17 ConfigureStep() { | 15 ConfigureStep() { |
| 18 export CROSS_COMPILE=true | 16 export CROSS_COMPILE=true |
| 19 EXTRA_CONFIGURE_ARGS+=" --disable-shared --enable-static --with-poller=poll" | 17 EXTRA_CONFIGURE_ARGS+=" --disable-shared --enable-static --with-poller=poll" |
| 20 DefaultConfigureStep | 18 DefaultConfigureStep |
| 21 } | 19 } |
| 22 | |
| 23 PackageInstall | |
| 24 exit 0 | |
| OLD | NEW |