| 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 # readline has config.sub in a 'support' subfolder | 7 # readline has config.sub in a 'support' subfolder |
| 10 CONFIG_SUB=support/config.sub | 8 CONFIG_SUB=support/config.sub |
| 11 MAKEFLAGS+=" EXEEXT=.nexe" | 9 MAKEFLAGS+=" EXEEXT=.nexe" |
| 12 | 10 |
| 13 if [ "${NACL_GLIBC}" != "1" ]; then | 11 if [ "${NACL_GLIBC}" != "1" ]; then |
| 14 NACLPORTS_CFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" | 12 NACLPORTS_CFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" |
| 15 EXTRA_CONFIGURE_ARGS="--disable-shared" | 13 EXTRA_CONFIGURE_ARGS="--disable-shared" |
| 16 export LIBS=-lglibc-compat | 14 export LIBS=-lglibc-compat |
| 17 fi | 15 fi |
| (...skipping 20 matching lines...) Expand all Loading... |
| 38 | 36 |
| 39 | 37 |
| 40 PackageInstall() { | 38 PackageInstall() { |
| 41 DefaultPackageInstall | 39 DefaultPackageInstall |
| 42 if [ "${NACL_GLIBC}" = "1" ]; then | 40 if [ "${NACL_GLIBC}" = "1" ]; then |
| 43 cd ${NACLPORTS_LIBDIR} | 41 cd ${NACLPORTS_LIBDIR} |
| 44 ln -sf libreadline.so.6 libreadline.so | 42 ln -sf libreadline.so.6 libreadline.so |
| 45 cd - | 43 cd - |
| 46 fi | 44 fi |
| 47 } | 45 } |
| 48 | |
| 49 | |
| 50 PackageInstall | |
| 51 exit 0 | |
| OLD | NEW |