| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2014 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 export RUNPROGRAM="${NACL_SEL_LDR} -a -B ${NACL_IRT} --" | 6 if [ "${NACL_GLIBC}" != "1" ]; then |
| 7 RUNPROGRAM+=" ${NACL_SDK_LIB}/runnable-ld.so" | 7 readonly GLIBC_COMPAT=${NACLPORTS_INCLUDE}/glibc-compat |
| 8 RUNPROGRAM+=" --library-path" | 8 NACLPORTS_CFLAGS+=" -I${GLIBC_COMPAT}" |
| 9 RUNPROGRAM+=" ${NACL_SDK_LIBDIR}:${NACL_SDK_LIB}:${NACLPORTS_LIBDIR}" | 9 EXTRA_CONFIGURE_ARGS="--disable-dso" |
| 10 export NACL_SEL_LDR | 10 fi |
| OLD | NEW |